Directional sound production control method and device, equipment and storage medium
By adjusting the deflection angle of the directional sound generating device and comparing the sound segments, the problem that the directional sound generating system can hear the sound in the rear row of the vehicle is solved, achieving better privacy.
Patent Information
- Application Number
- CN202411993469.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
Directional sound system can easily cause the rear-row personnel to hear directional sounds in the vehicle, making it difficult to ensure the privacy of the driver.
By obtaining the driver's head height information, adjusting the deflection angle of the directional sound generating device, and collecting sound segments through the audio acquisition device for comparison, determining the sound pressure level difference, so as to judge that the adjustment of the directional sound generating device is completed.
It effectively avoids directional sound sound being heard in the back row, improving the privacy of the driver.
Smart Images

Figure CN119835571A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a directional sound control method, device, equipment and storage medium. Background Art
[0002] Directional sound system is a product that uses the high directional characteristics of ultrasound to achieve directional sound propagation. Ultrasound needs a certain distance to be converted into audible waves in the air, and is demodulated using the air medium, so that it can reach the human ear in the best audible state.
[0003] Nowadays, directional sound systems have gradually been installed in vehicles to ensure the privacy of the driver. However, due to the high directionality of ultrasonic propagation, the vertical optimal audible area will also change when the passengers are of different heights or the seat heights are different. Also, due to the high refractive nature of ultrasound, when the angle of the directional sound screen is too large, the sound is easily refracted to the back row, causing the people in the back row to hear the sound, reducing the privacy of the directional sound. Summary of the invention
[0004] The main purpose of the present application is to provide a directional sound control method, device, equipment and storage medium, aiming to solve the technical problem that directional sound in related technologies easily causes rear passengers in the vehicle to hear directional sound, and it is difficult to ensure the privacy of directional sound.
[0005] To achieve the above objectives, the present application proposes a directional sound control method, the method comprising:
[0006] Acquiring the driver's head height information, where the head height information is the height difference between the driver's head and the directional sound emitting device in the vertical direction;
[0007] If the head height information is greater than a preset height threshold, the deflection angle of the directional sound-emitting device is adjusted to an upper deflection angle upper limit, and the directional sound-emitting device is controlled to play a preset audio, wherein the upper deflection angle upper limit is the maximum value of the upward deflection angle of the directional sound-emitting device;
[0008] Acquire a first sound segment collected by a main driver's seat audio collection device and a second sound segment collected by a main driver's seat rear audio collection device;
[0009] comparing the first sound segment with the second sound segment to determine a sound pressure level difference;
[0010] If the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it is determined that the adjustment of the directional sound emitting device is completed.
[0011] Optionally, after comparing the first sound segment with the second sound segment to determine the sound pressure level difference, the method further includes:
[0012] If the sound pressure level difference is less than a preset sound pressure threshold, determining a callback angle value according to the sound pressure level difference;
[0013] The directional sound device is angle-called back based on the callback angle value, and the step of obtaining the first sound segment corresponding to the main driver's audio collection device and the second sound segment corresponding to the main driver's rear audio collection device is returned.
[0014] Optionally, comparing the first sound segment with the second sound segment to determine the sound pressure level difference includes:
[0015] Acquire sound pressure frequency information corresponding to at least one time point in the preset audio;
[0016] Determine the sound pressure level information corresponding to the first sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point;
[0017] Determine the corresponding sound pressure level information in the second sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point;
[0018] The difference between the sound pressure level information corresponding to the first sound segment and the sound pressure level information corresponding to the second sound segment is calculated to obtain the sound pressure level difference.
[0019] Optionally, after comparing the first sound segment with the second sound segment to determine the sound pressure level difference, the method further includes:
[0020] If the sound pressure level difference is less than the preset sound pressure threshold;
[0021] Calculate the screen relative angle according to the head height information, where the screen relative angle is the angle between the line between the head reference point and the directional sound screen reference point and the horizontal direction;
[0022] If the screen relative angle is less than or equal to the lower deflection angle upper limit, adjusting the deflection angle of the directional sound emitting device to the screen relative angle;
[0023] If the relative angle of the screen is greater than the lower deflection angle upper limit, the deflection angle of the directional sound-emitting device is adjusted to the lower deflection angle upper limit.
[0024] Optionally, if the sound pressure level difference is greater than or equal to a preset sound pressure threshold, determining that the adjustment of the directional sound emission device is completed includes:
[0025] If the sound pressure level difference is greater than or equal to a preset sound pressure threshold, controlling the directional sound emitting device to play a preset audio;
[0026] Obtaining a passenger's voice clip collected by a passenger's audio collection device;
[0027] Filtering the co-pilot voice segment to determine the background noise sound pressure corresponding to the co-pilot voice segment;
[0028] Determining the co-pilot residual volume according to the background noise sound pressure corresponding to the co-pilot sound segment and the sound pressure corresponding to the preset audio;
[0029] If the co-pilot residual volume is less than the first residual threshold, it is determined that the adjustment of the directional sound emission device is completed.
[0030] Optionally, after determining the co-pilot residual volume according to the background noise sound pressure corresponding to the co-pilot sound segment and the sound pressure corresponding to the preset audio, the method further includes:
[0031] If the co-driver residual volume is greater than or equal to the first residual threshold, obtaining a main driver sound segment collected by the main driver audio collection device when playing the preset audio;
[0032] Filtering the main driver's voice segment to determine the background noise sound pressure corresponding to the main driver's voice segment;
[0033] Determine the residual volume of the main driver's car according to the background noise sound pressure corresponding to the main driver's car sound segment and the sound pressure corresponding to the preset audio;
[0034] If the residual volume of the main driver's car is less than or equal to the second residual threshold, it is determined that the adjustment of the directional sound device is completed.
[0035] Optionally, after determining the residual volume of the driver's seat according to the background noise sound pressure corresponding to the driver's seat sound segment and the sound pressure corresponding to the preset audio, the method further includes:
[0036] If the residual volume of the main driver's car is greater than a second residual threshold, determining a volume adjustment value according to the residual volume of the main driver's car;
[0037] The volume of the preset audio played by the directional sound emitting device is reduced according to the volume adjustment value, and the process returns to the step of obtaining the co-pilot sound segment collected by the co-pilot audio collecting device.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a directional sound control device, the device comprising:
[0039] An acquisition module, used to acquire the driver's head height information, wherein the head height information is the height difference between the driver's head and the directional sound emitting device in the vertical direction;
[0040] an adjustment module, configured to adjust the deflection angle of the directional sound-emitting device to an upper deflection angle limit if the head height information is greater than a preset height threshold, and control the directional sound-emitting device to play a preset audio, wherein the upper deflection angle limit is a maximum value of the upward deflection angle of the directional sound-emitting device;
[0041] A collection module, used to obtain a first sound segment collected by a main driver's audio collection device and a second sound segment collected by a main driver's rear audio collection device;
[0042] A comparison module, configured to compare the first sound segment with the second sound segment to determine a sound pressure level difference;
[0043] The determination module is used to determine that the adjustment of the directional sound emission device is completed if the sound pressure level difference is greater than or equal to a preset sound pressure threshold.
[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a directional sound control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the directional sound control method as described above.
[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the directional sound control method as described above are implemented.
[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the directional sound control method described above are implemented.
[0047] One or more technical solutions proposed in this application have at least the following technical effects:
[0048] Since the sound clips collected by audio collection devices set at different positions can be analyzed to determine whether the directional sound can be heard in the back row, the directional sound device can be reasonably adjusted based on this to prevent the directional sound from being heard in the back row and ensure the privacy of the driver. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A schematic diagram of a flow chart provided for Embodiment 1 of the directional sound control method of the present application;
[0052] Figure 2 A schematic diagram of a flow chart provided for Embodiment 2 of the directional sound control method of the present application;
[0053] Figure 3 A schematic diagram of a scene for determining head height information according to an embodiment of the present application;
[0054] Figure 4 This is a schematic diagram of the module structure of the directional sound control device according to an embodiment of the present application;
[0055] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the directional sound control method in the embodiment of the present application.
[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0059] Based on this, the embodiment of the present application provides a directional sound control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the directional sound control method of the present application.
[0060] In this embodiment, the directional sound control method includes steps S10 to S40:
[0061] Step S10: Obtain the driver's head height information.
[0062] Step S20: If the head height information is greater than a preset height threshold, the deflection angle of the directional sound-emitting device is adjusted to an upper deflection angle limit, and the directional sound-emitting device is controlled to play a preset audio.
[0063] It should be noted that the executor of this embodiment can be the vehicle itself or a directional sound control device arranged in the vehicle. The directional sound control device can be a controller arranged in the vehicle and capable of controlling the directional sound device in the vehicle, such as an ECU controller, or other devices capable of achieving the same or similar functions. This embodiment does not impose any restrictions on this. In this embodiment and the following embodiments, the directional sound control method of the present invention is described by taking a directional sound control device as an example.
[0064] It should be noted that the directional sound device can be an instrument panel or display screen with directional sound function, or other devices with directional sound function. The head height information can be the height difference between the driver's head reference point and the directional sound device reference point in the vertical direction (i.e., from the ground to the sky), and the upper deflection angle limit is the maximum value of the upward deflection angle of the directional sound device.
[0065] In actual use, the preset height threshold can be set in advance by the manager of the directional sound control device. The preset height threshold is mainly used to assist in determining whether the height of the directional sound device is higher than the height of the driver's ear. For example: if the head height information is calculated using the human ear as a reference point, the preset height threshold can be set to 0; if the head height information is calculated using the top of the head as a reference point, because there will be a certain distance between the top of the head and the ear, and the top of the head is higher than the ear, the preset height threshold can be set to a negative value; if the head height information is calculated using the center of the head as a reference point, because the center of the head is lower than the ear, the preset height threshold can be set to a positive value.
[0066] It can be understood that if the driver's head height information is greater than the preset height threshold, it means that the directional sound device is lower than the driver's ear at this time. At this time, in order to facilitate determining the optimal directional sound angle, the deflection angle of the directional sound device can be adjusted to the upper deflection angle limit, that is, the directional sound device is controlled to deflect upward to the upper limit of the deflection angle it supports. At the same time, the directional sound device is controlled to play the preset audio.
[0067] In a specific implementation, in order to ensure the accuracy of the judgment, the optimal audible distance interval of the directional sound-emitting device can be calibrated first, that is, the distance interval of the seat relative to the directional sound-emitting device in the horizontal direction when the optimal audible effect is achieved. After that, the front and rear position information of the driver's seat can be obtained to determine whether the front and rear position information is in the optimal audible distance interval. If not, the front and rear position information of the seat can be adjusted first to ensure that the front and rear position information of the seat is in the optimal audible distance interval; if so, step S10 can be executed.
[0068] Step S30: Acquire a first sound segment collected by the main driver's seat audio collection device and a second sound segment collected by the main driver's seat rear audio collection device.
[0069] It should be noted that the main driver's audio collection device can be an audio collection device arranged near the driver's ear, such as an audio collection device arranged at the headrest of the main driver's seat or above the driver's ear, and the main driver's rear audio collection device can be an audio collection device arranged behind the main driver and near the ears of the rear passengers, such as an audio collection device arranged behind the main driver and at the headrest of the rear seat, or an audio collection device at the ears of the rear passengers (such as above the ears or at the headrest close to the ears).
[0070] The audio collection device may be a microphone or a microphone array, and of course, may also be other devices with similar functions, which is not limited in this embodiment.
[0071] Step S40: comparing the first sound segment with the second sound segment to determine a sound pressure level difference.
[0072] It should be noted that the sound pressure level difference may be a difference between the sound pressure level of the first sound segment and the sound pressure level of the second sound segment.
[0073] In actual use, the sound pressure level of the first sound segment and the sound pressure level of the second sound segment may be calculated respectively, and then the sound pressure level difference of the two sound segments may be calculated by performing a difference calculation.
[0074] In a specific implementation, in order to increase the speed of adjustment, step S40 in this embodiment may include:
[0075] Acquire sound pressure frequency information corresponding to at least one time point in the preset audio;
[0076] Determine the sound pressure level information corresponding to the first sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point;
[0077] Determine the corresponding sound pressure level information in the second sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point;
[0078] The difference between the sound pressure level information corresponding to the first sound segment and the sound pressure level information corresponding to the second sound segment is calculated to obtain the sound pressure level difference.
[0079] It should be noted that the overall speed of analyzing the entire sound segment will be slow, the amount of calculation required will be relatively large, and the overall time consumption will be longer. In order to increase the speed of adjustment, it is necessary to avoid analyzing the entire sound segment. Therefore, at least one time point can be selected in the preset audio, and the sound pressure frequency information of the time point can be obtained, wherein the sound pressure frequency information can be the frequency information with the highest sound pressure level within the time point.
[0080] After determining at least one time point and the sound pressure frequency information corresponding to the time point, the sound pressure level at the same time point (i.e., the same moment) and the same frequency can be selected in the first sound segment to obtain at least one sound pressure level. At this time, the at least one sound pressure level is averaged to obtain the corresponding sound pressure level information in the first sound segment. In the same way, the corresponding sound pressure level information in the second sound segment can be determined.
[0081] In actual use, after obtaining the sound pressure level information corresponding to the first sound segment and the sound pressure level information corresponding to the second sound segment, the difference between the two can be calculated, and the difference is the sound pressure level difference.
[0082] Step S50: If the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it is determined that the adjustment of the directional sound emission device is completed.
[0083] It should be noted that if the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it means that through directional sound emission, it can be ensured that the sound pressure level difference between the main driver's seat and the back of the main driver's seat can reach a larger difference. Due to the influence of environmental noise, it is basically impossible for the rear passengers to hear the sound of the directional sound emission. Therefore, it can be determined that the adjustment of the directional sound emission device is completed.
[0084] In a specific implementation, in order to ensure that the directional sound emitting device can be adjusted to a suitable angle, after step S40 in this embodiment, the following may also be included:
[0085] If the sound pressure level difference is less than a preset sound pressure threshold, determining a callback angle value according to the sound pressure level difference;
[0086] The directional sound device is angle-called back based on the callback angle value, and the step of obtaining the first sound segment corresponding to the main driver's audio collection device and the second sound segment corresponding to the main driver's rear audio collection device is returned.
[0087] It should be noted that if the sound pressure level difference is less than the preset sound pressure threshold, it means that the sound that can be heard at the driver's seat and the sound that can be heard behind the driver's seat are actually very different. This may be because part of the sound waves are refracted to the back row by the roof of the vehicle. At this time, you can try to adjust the angle of the directional sound device to reduce the refraction phenomenon. Therefore, the callback angle value can be determined according to the sound pressure level difference.
[0088] Among them, since the smaller the sound pressure level difference is, the smaller the difference between the sound audible at the main driver's seat and the sound audible behind the main driver's seat is, the more serious the refraction phenomenon is. Therefore, the sound pressure level difference may be inversely proportional to the callback angle value.
[0089] In actual use, after determining the callback angle value, the directional sound-emitting device can be adjusted based on the callback angle value, that is, the directional sound-emitting device can be deflected downward by the callback angle value. After the callback, it is possible to return to step S30 to continue measuring and determine whether further adjustment is needed.
[0090] In a specific implementation, in order to reasonably adjust the angle of the directional sound emitting device, after step S10 in this embodiment, the following may also be included:
[0091] If the head height information is less than or equal to a preset height threshold, calculating the screen relative angle according to the head height information;
[0092] If the screen relative angle is less than or equal to the lower deflection angle upper limit, adjusting the deflection angle of the directional sound emitting device to the screen relative angle;
[0093] If the relative angle of the screen is greater than the lower deflection angle upper limit, the deflection angle of the directional sound device is adjusted to the lower deflection angle upper limit.
[0094] It should be noted that the relative angle of the screen can be the angle between the line between the head reference point and the directional sound screen reference point and the horizontal direction. If the head height information is less than or equal to the preset height threshold, it means that the height of the directional sound device is higher than the driver's ear. At this time, the directional sound device will be adjusted to deflect downward. When deflecting downward, the sound waves emitted by the directional sound device will actually be absorbed by the seat, and basically no sound waves will be refracted to the back row. At this time, only the deflection angle of the directional sound device needs to be considered. Therefore, the relative angle of the screen can be calculated based on the head height information.
[0095] Among them, when calculating the relative angle of the screen, the tangent function can be used for corresponding calculations. At this time, assuming that the relative angle of the screen is α, then tanα=Z / X. The relative angle of the screen can be solved using this formula, where Z is the head height information, and X is the distance between the seat and the directional sound device in the horizontal direction, or the value in the best audible distance range (such as taking the median value of the best audible distance range as X).
[0096] In actual use, the upper limit of the lower deflection angle may be the maximum value of the angle that the directional sound-emitting device can deflect when it is deflected downward.
[0097] If the screen relative angle is greater than the lower deflection angle upper limit, it means that the calculated screen relative angle has exceeded the maximum value of the angle that the directional sound device can deflect downward. At this time, you can only adjust the deflection angle of the directional sound device to the lower deflection angle upper limit;
[0098] If the screen relative angle is less than or equal to the lower deflection angle upper limit, it means that the screen relative angle calculated at this time is within the adjustable range when the directional sound device is deflected downward. Therefore, the deflection angle of the directional sound device can be adjusted to the screen relative angle.
[0099] This embodiment provides a directional sound control method. Since the sound clips collected by the audio collection devices set at different positions can be analyzed, it can be determined whether the directional sound can be heard in the back area, and the directional sound device can be reasonably adjusted based on this to prevent the directional sound from being heard in the back row, so as to ensure the privacy of the driver.
[0100] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , step S50 includes steps S501 to S505:
[0101] Step S501: If the sound pressure level difference is greater than or equal to a preset sound pressure threshold, the directional sound emitting device is controlled to play a preset audio.
[0102] It should be noted that if the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it means that the sound that the main driver can hear in the area behind the main driver (i.e., the back row area) is very different. However, the co-driver may still hear the directional sound. At this time, adjustments can be made to prevent the co-driver from hearing the directional sound. Therefore, the directional sound device can be controlled to play the preset audio.
[0103] Step S502: Acquire the passenger's sound clip collected by the passenger's audio collection device.
[0104] It should be noted that the co-pilot audio collection device can be an audio collection device arranged at the ear of the co-pilot person, such as an audio collection device arranged at the headrest of the co-pilot seat or above the co-pilot person.
[0105] When controlling the directional sound device to play preset audio, the co-pilot audio can be activated to collect sound, thereby obtaining the co-pilot sound clip.
[0106] Step S503: filtering the passenger's voice segment to determine the background noise pressure corresponding to the passenger's voice segment.
[0107] In actual use, the spectrum analysis of the preset audio being played can be performed, and then the co-pilot sound clip can be filtered using a filter based on the result of the spectrum analysis to remove part of the spectrum in the co-pilot sound clip and the part related to the preset audio, thereby obtaining the background noise. Then, the sound pressure level of the background noise can be calculated to determine the background noise sound pressure.
[0108] Step S504: determining the co-pilot residual volume according to the background noise sound pressure corresponding to the co-pilot sound segment and the sound pressure corresponding to the preset audio.
[0109] In actual use, the background noise sound pressure corresponding to the co-pilot sound clip can be used to subtract the sound pressure corresponding to the preset audio to obtain the sound pressure level of the two, that is, the co-pilot residual volume.
[0110] Step S505: If the passenger residual volume is less than the first residual threshold, it is determined that the adjustment of the directional sound device is completed.
[0111] It can be understood that if the residual volume of the co-pilot is less than the first residual threshold, it means that the volume collected by the co-pilot is actually very small at this time, and it is almost impossible to hear the sound of the directional sound. Therefore, it can be determined that the adjustment of the directional sound device is completed.
[0112] In a specific implementation, in order to prevent the co-driver from hearing the directional sound, after implementing step S404, this embodiment may further include:
[0113] If the co-driver residual volume is greater than or equal to the first residual threshold, obtaining a main driver sound segment collected by the main driver audio collection device when playing the preset audio;
[0114] Filtering the main driver's voice segment to determine the background noise sound pressure corresponding to the main driver's voice segment;
[0115] Determine the residual volume of the main driver's car according to the background noise sound pressure corresponding to the main driver's car sound segment and the sound pressure corresponding to the preset audio;
[0116] If the residual volume of the main driver's car is less than or equal to the second residual threshold, it is determined that the adjustment of the directional sound device is completed.
[0117] It should be noted that if the co-pilot residual volume is greater than or equal to the first residual threshold, it means that the co-pilot can actually hear part of the directional sound at this time. At this time, it is necessary to determine whether to try to lower the volume to prevent the co-pilot from hearing the directional sound. Therefore, the residual volume of the driver can be obtained in a similar way to the co-pilot sound clip. The second residual is preset to be greater than the first residual threshold. The first residual threshold and the second residual threshold can be pre-set by the administrator of the directional sound control device, for example: the first residual threshold is set to 5dBA and the second residual threshold is set to 20dBA.
[0118] In actual use, if the residual volume of the main driver's seat is less than or equal to the second residual threshold, it means that the volume collected at the main driver's seat is already relatively small. Continuing to lower the volume at this time will make it difficult for the driver to hear the sound of the directional sound. It is impossible to prevent the co-pilot from hearing the sound of the directional sound by lowering the volume. Therefore, it can be determined that the adjustment of the directional sound device is complete.
[0119] In a specific implementation, if the residual volume of the main driver's car is high, you can try to reduce the volume to prevent the co-driver from hearing the directional sound. Therefore, after the step of determining the residual volume of the main driver's car according to the background noise sound pressure corresponding to the main driver's car sound segment and the sound pressure corresponding to the preset audio in this embodiment, it can also include:
[0120] If the residual volume of the main driver's car is greater than a second residual threshold, determining a volume adjustment value according to the residual volume of the main driver's car;
[0121] The volume of the preset audio played by the directional sound emitting device is reduced according to the volume adjustment value, and the process returns to the step of obtaining the co-pilot sound segment collected by the co-pilot audio collecting device.
[0122] It should be noted that if the residual volume of the main driver's seat is greater than the second residual threshold, it means that the volume collected at the main driver's seat is already relatively loud. You can try to prevent the co-pilot from hearing the directional sound by lowering the volume. Therefore, the volume adjustment value can be determined based on the residual volume of the main driver's seat. After that, the volume of the directional sound device playing the preset audio is lowered according to the volume adjustment value, and the step of obtaining the co-pilot sound clip collected by the co-pilot audio collection device is returned to continue analysis to determine whether further adjustment is needed.
[0123] In order to ensure rapid adjustment, the residual volume of the main driver's car may be proportional to the volume adjustment value, that is, the greater the residual volume of the main driver's car, the greater the volume adjustment value.
[0124] In actual application, when determining the volume adjustment value, the residual volume of the passenger seat can be combined with the residual volume of the driver's seat. The residual volume of the passenger seat is also proportional to the volume adjustment value. The specific proportional relationship between the two times can be pre-set by the manager of the directional sound control device.
[0125] For ease of understanding, now combined Figure 3 This is for illustration only, but not for limitation. Figure 3 This is a schematic diagram of a scene for determining head height information in this embodiment.
[0126] like Figure 3As shown, the directional sound device is a flat plate, and the normal direction of the flat plate is the sound direction corresponding to the directional sound device. At this time, the height reference point of the directional sound device is reference point 1, and the reference point of the driver's head is reference point 2. The difference between the heights of reference point 1 and reference point 2 is calculated to obtain the head height information;
[0127] Before the adjustment, the top of the directional sound-emitting device is at position A. At this time, the directional sound-emitting device is oriented in the horizontal direction. At this time, the head height information Z2 can be obtained. In the horizontal direction, the distance value between the seat and the directional sound-emitting device is X1. At this time, the deflection angle calculated is α, and tanα=Z2 / X1. The directional sound-emitting device can be controlled to deflect upward, and the deflection angle is α. At this time, the top of the directional sound-emitting device will move to position B. At this time, the directional sound-emitting device is oriented toward the human ear (such as Figure 3 shown by the green line).
[0128] This embodiment provides a directional sound control method. After determining that the front passenger seat cannot hear the directional sound, it will further detect whether the front passenger seat can hear the directional sound, and make further adjustments based on this attempt to ensure that the front passenger seat cannot hear the directional sound as much as possible, thereby further improving the driver's privacy.
[0129] This application also provides a directional sound control device, please refer to Figure 4 , the directional sound control device comprises:
[0130] An acquisition module 10 is used to acquire the driver's head height information, where the head height information is the height difference between the driver's head and the directional sound emitting device in the vertical direction;
[0131] The adjustment module 20 is used to adjust the deflection angle of the directional sound-emitting device to an upper deflection angle upper limit if the head height information is greater than a preset height threshold, and control the directional sound-emitting device to play a preset audio, wherein the upper deflection angle upper limit is the maximum value of the upward deflection angle of the directional sound-emitting device;
[0132] The acquisition module 30 is used to acquire the first sound segment acquired by the main driver's audio acquisition device and the second sound segment acquired by the main driver's rear audio acquisition device;
[0133] A comparison module 40, configured to compare the first sound segment with the second sound segment to determine a sound pressure level difference;
[0134] The determination module 50 is configured to determine that the adjustment of the directional sound emission device is completed if the sound pressure level difference is greater than or equal to a preset sound pressure threshold.
[0135] The directional sound control device provided by the present application adopts the directional sound control method in the above embodiment, which can solve the technical problem that the directional sound in the related art easily causes the rear passengers in the vehicle to hear the directional sound, and it is difficult to ensure the privacy of the directional sound. Compared with the prior art, the beneficial effects of the directional sound control device provided by the present application are the same as the beneficial effects of the directional sound control method provided by the above embodiment, and the other technical features in the directional sound control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0136] The present application provides a directional sound control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the directional sound control method in the above-mentioned embodiment one.
[0137] Reference below Figure 5 , which shows a schematic diagram of the structure of a directional sound control device suitable for implementing the embodiment of the present application. The directional sound control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The directional sound control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0138] like Figure 5As shown, the directional sound emission control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the directional sound emission control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the directional sound control device to communicate with other devices wirelessly or by wire to exchange data. Although the directional sound control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0139] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0140] The directional sound control device provided by the present application adopts the directional sound control method in the above embodiment, which can solve the technical problem that the directional sound in the related art easily causes the rear passengers in the vehicle to hear the directional sound, and it is difficult to ensure the privacy of the directional sound. Compared with the prior art, the beneficial effects of the directional sound control device provided by the present application are the same as the beneficial effects of the directional sound control method provided by the above embodiment, and the other technical features in the directional sound control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0141] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0143] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the directional sound control method in the above-mentioned embodiment.
[0144] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0145] The computer-readable storage medium may be included in the directional sound emission control device; or may exist independently without being assembled into the directional sound emission control device.
[0146] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the directional sound control device, the directional sound control device: obtains the driver's head height information, and the head height information is the height difference between the driver's head and the directional sound device; if the head height information is greater than a preset height threshold, the directional sound device is adjusted to the upper deflection angle limit, and the directional sound device is controlled to play a preset audio, and the upper deflection angle limit is the maximum value of the upward deflection angle of the directional sound device; obtains a first sound segment collected by the main driver's audio collection device and a second sound segment collected by the main driver's headrest audio collection device; compares the first sound segment with the second sound segment to determine the sound pressure level difference; if the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it is determined that the adjustment of the directional sound device is completed.
[0147] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0148] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0149] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0150] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned directional sound control method, and can solve the technical problem that directional sound in the related art easily causes the rear passengers in the vehicle to hear directional sound, and it is difficult to ensure the privacy of directional sound. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the directional sound control method provided by the above-mentioned embodiment, and will not be repeated here.
[0151] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned directional sound control method when executed by a processor.
[0152] The computer program product provided by the present application can solve the technical problem that directional sound emission in the related art easily causes the rear passengers in the vehicle to hear the directional sound, and it is difficult to ensure the privacy of the directional sound emission. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the directional sound emission control method provided by the above embodiment, and will not be elaborated here.
[0153] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A directional sound control method, characterized in that: The method comprises: Acquiring the driver's head height information, where the head height information is the height difference between the driver's head and the directional sound emitting device in the vertical direction; If the head height information is greater than a preset height threshold, the deflection angle of the directional sound-emitting device is adjusted to an upper deflection angle upper limit, and the directional sound-emitting device is controlled to play a preset audio, wherein the upper deflection angle upper limit is the maximum value of the upward deflection angle of the directional sound-emitting device; Acquire a first sound segment collected by a main driver's seat audio collection device and a second sound segment collected by a main driver's seat rear audio collection device; comparing the first sound segment with the second sound segment to determine a sound pressure level difference; If the sound pressure level difference is greater than or equal to the preset sound pressure threshold, it is determined that the adjustment of the directional sound emitting device is completed.
2. The directional sound control method according to claim 1, characterized in that: After comparing the first sound segment with the second sound segment to determine the sound pressure level difference, the method further includes: If the sound pressure level difference is less than a preset sound pressure threshold, determining a callback angle value according to the sound pressure level difference; The directional sound device is angle-called back based on the callback angle value, and the step of obtaining the first sound segment corresponding to the main driver's audio collection device and the second sound segment corresponding to the main driver's rear audio collection device is returned.
3. The directional sound control method according to claim 1, characterized in that: The comparing the first sound segment with the second sound segment to determine the sound pressure level difference includes: Acquire sound pressure frequency information corresponding to at least one time point in the preset audio; Determine the sound pressure level information corresponding to the first sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point; Determine the corresponding sound pressure level information in the second sound segment according to the at least one time point and the sound pressure frequency information corresponding to each time point; The difference between the sound pressure level information corresponding to the first sound segment and the sound pressure level information corresponding to the second sound segment is calculated to obtain the sound pressure level difference.
4. The directional sound control method according to claim 1, characterized in that: After obtaining the driver's head height information, the method further includes: If the head height information is less than or equal to a preset height threshold, the screen relative angle is calculated according to the head height information, where the screen relative angle is the angle between the line between the head reference point and the directional sound screen reference point and the horizontal direction; If the screen relative angle is less than or equal to the lower deflection angle upper limit, adjusting the deflection angle of the directional sound emitting device to the screen relative angle; If the relative angle of the screen is greater than the lower deflection angle upper limit, the deflection angle of the directional sound-emitting device is adjusted to the lower deflection angle upper limit.
5. The directional sound control method according to any one of claims 1 to 4, characterized in that: If the sound pressure level difference is greater than or equal to a preset sound pressure threshold, it is determined that the adjustment of the directional sound emission device is completed, including: If the sound pressure level difference is greater than or equal to a preset sound pressure threshold, controlling the directional sound emitting device to play a preset audio; Obtaining a passenger's voice clip collected by a passenger's audio collection device; Filtering the co-pilot voice segment to determine the background noise sound pressure corresponding to the co-pilot voice segment; Determining the co-pilot residual volume according to the background noise sound pressure corresponding to the co-pilot sound segment and the sound pressure corresponding to the preset audio; If the co-pilot residual volume is less than the first residual threshold, it is determined that the adjustment of the directional sound emission device is completed.
6. The directional sound control method according to claim 5, characterized in that: After determining the co-pilot residual volume according to the background noise sound pressure corresponding to the co-pilot sound segment and the sound pressure corresponding to the preset audio, the method further includes: If the co-driver residual volume is greater than or equal to the first residual threshold, obtaining a main driver sound segment collected by the main driver audio collection device when playing the preset audio; Filtering the main driver's voice segment to determine the background noise sound pressure corresponding to the main driver's voice segment; Determine the residual volume of the main driver's car according to the background noise sound pressure corresponding to the main driver's car sound segment and the sound pressure corresponding to the preset audio; If the residual volume of the main driver's car is less than or equal to the second residual threshold, it is determined that the adjustment of the directional sound device is completed.
7. The directional sound control method according to claim 6, characterized in that: After determining the residual volume of the main driver's seat according to the background noise sound pressure corresponding to the main driver's seat sound segment and the sound pressure corresponding to the preset audio, the method further includes: If the residual volume of the main driver's car is greater than a second residual threshold, determining a volume adjustment value according to the residual volume of the main driver's car; The volume of the preset audio played by the directional sound emitting device is reduced according to the volume adjustment value, and the process returns to the step of obtaining the co-pilot sound segment collected by the co-pilot audio collecting device.
8. A directional sound control device, characterized in that: The device comprises: An acquisition module, used to acquire the driver's head height information, wherein the head height information is the height difference between the driver's head and the directional sound emitting device in the vertical direction; an adjustment module, configured to adjust the deflection angle of the directional sound-emitting device to an upper deflection angle limit if the head height information is greater than a preset height threshold, and control the directional sound-emitting device to play a preset audio, wherein the upper deflection angle limit is a maximum value of the upward deflection angle of the directional sound-emitting device; A collection module, used to obtain a first sound segment collected by a main driver's audio collection device and a second sound segment collected by a main driver's rear audio collection device; A comparison module, configured to compare the first sound segment with the second sound segment to determine a sound pressure level difference; The determination module is used to determine that the adjustment of the directional sound emission device is completed if the sound pressure level difference is greater than or equal to a preset sound pressure threshold.
9. A directional sound control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the directional sound emission control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the directional sound control method according to any one of claims 1 to 7 are implemented.