Method, device and vehicle for compensating output volume of a voice announcement device
By detecting whether a user is in the vehicle seat, calculating the weighted deviation distance of the voice broadcast device, and adjusting the output volume, the problem of difficult volume adjustment of in-vehicle electronic devices is solved, improving user experience and driving safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU VOICE OF LOVE TECH CO LTD
- Filing Date
- 2024-12-17
- Publication Date
- 2026-06-19
AI Technical Summary
In the existing technology, the volume adjustment of in-vehicle electronic devices is difficult, which cannot meet the personalized needs of different passengers, distracts the driver's attention, and increases the driving danger.
By detecting whether a user is in the vehicle seat, determining the seat's tag value, obtaining the initial and actual distance between the seat and the voice broadcasting device, calculating the deviation distance, determining the weighted deviation distance based on the deviation distance and the tag value, and adjusting the output volume of the voice broadcasting device to achieve personalized volume compensation.
It enables personalized volume adjustment for the voice broadcast device, improving the user experience, reducing driver distraction caused by volume adjustment, and enhancing driving safety.
Smart Images

Figure CN122248318A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio control technology, and more specifically to a method, apparatus, vehicle, and storage medium for compensating the output volume of a voice broadcasting device. Background Technology
[0002] With the steady development of the automotive industry, the variety of in-vehicle electronic devices has become increasingly diverse, such as in-vehicle navigation systems, vehicle warning systems, and in-vehicle multimedia entertainment systems. These devices make driving more convenient, safer, and more comfortable. However, because these devices are fixed in their positions within the car and require manual selection via a user interface to activate, drivers often have to manually adjust them to meet the different needs of passengers in different positions. This can easily distract the driver and increase driving hazards. Furthermore, this manual adjustment method often fails to meet the personalized needs of other passengers while satisfying the needs of some, resulting in a poor passenger experience. Summary of the Invention
[0003] The purpose of this application is to provide a method, apparatus, vehicle, and storage medium for compensating the output volume of a voice broadcasting device, in order to solve the problems of difficulty in volume adjustment and difficulty in meeting users' personalized needs in the prior art.
[0004] To achieve the above objectives, a first aspect of this application provides a method for compensating the output volume of a voice broadcasting device, applied to a vehicle, the vehicle including the voice broadcasting device and a seat, the method comprising:
[0005] The system detects whether a user is in each seat in the vehicle and determines the tag value for each seat based on the detection results.
[0006] Obtain the initial distance between each seat and each voice broadcasting device in the vehicle;
[0007] Determine the actual distance between each seat and each voice broadcasting device;
[0008] The deviation distance between each seat and each voice broadcasting device is determined based on the initial and actual distances between each seat and each voice broadcasting device;
[0009] The weighted deviation distance of each voice broadcasting device is determined based on all deviation distances and the label values of all seats;
[0010] The compensation volume for each voice broadcasting device is determined based on the weighted deviation distance and initial output volume of each voice broadcasting device, in order to compensate for each voice broadcasting device.
[0011] In this embodiment of the application, determining the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats includes: determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device; and for each voice broadcasting device, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats.
[0012] In this embodiment, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats includes determining the weighted deviation distance of the voice broadcasting device according to formula (1):
[0013]
[0014] Among them, S n W is the weighted deviation distance of the nth voice broadcasting device. mn Let A be the weight of the nth voice broadcasting device relative to the mth seat. mn Let T be the deviation distance between the nth voice broadcasting device and the mth seat. m Let m be the label value of the m-th seat, where M is the total number of seats in the vehicle.
[0015] In this embodiment, determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device includes determining the weight of each seat relative to each voice broadcasting device according to formula (2):
[0016]
[0017]
[0018] Among them, W mn Y represents the weight of the m-th seat relative to the n-th voice broadcasting device. mn Y is the actual distance between the m-th seat and the n-th voice broadcasting device. 1n Y is the actual distance between the first seat and the nth voice broadcasting device. 2n Y is the actual distance between the second seat and the nth voice broadcasting device. pn Let be the actual distance between the p-th seat and the n-th voice broadcasting device, N be the total number of voice broadcasting devices, and M be the total number of seats in the vehicle.
[0019] In this embodiment of the application, the vehicle further includes a Hall sensor. Determining the actual distance between each seat and each voice broadcasting device includes: acquiring a pulse wave between any seat and any voice broadcasting device collected by the Hall sensor; determining the forward and backward movement distance, vertical movement distance, and tilt angle of any seat relative to any voice broadcasting device based on the pulse wave; and determining the actual distance between any seat and any voice broadcasting device based on the forward and backward movement distance, vertical movement distance, and tilt angle.
[0020] In this embodiment of the application, determining the compensation volume of each voice broadcasting device based on the weighted deviation distance and initial output volume of each voice broadcasting device includes:
[0021] The compensated output volume of each voice broadcasting device is determined according to formula (3):
[0022] V n =(CS n +1)×V n ′,(n=1、2…N) (3)
[0023] Among them, V n Let S be the output volume of the nth voice broadcasting device after compensation, where C is a constant and S is a variable. n V is the weighted deviation distance of the nth voice broadcasting device. n ′ represents the initial output volume of the nth voice broadcasting device, and N represents the total number of voice broadcasting devices;
[0024] The difference between the compensated output volume of each voice broadcasting device and the initial output volume of each voice broadcasting device is determined as the compensated volume of each voice broadcasting device.
[0025] In this embodiment of the application, determining the label value of each seat based on the detection results includes: for any seat, if the detection result of any seat indicates that a user is present on any seat, determining the label value of any seat to be a first preset value; for any seat, if the detection result of any seat indicates that no user is present on any seat, determining the label value of any seat to be a second preset value.
[0026] A second aspect of this application provides an apparatus for compensating the output volume of a voice broadcasting device, comprising:
[0027] The memory is configured to store instructions;
[0028] The processor is configured to retrieve instructions from memory and, when executing the instructions, to implement the aforementioned method for compensating the output volume of the voice broadcasting device.
[0029] A third aspect of this application provides a vehicle, comprising:
[0030] Voice broadcasting device;
[0031] Seats;
[0032] The aforementioned device for compensating the output volume of a voice broadcasting device.
[0033] A fourth aspect of this application provides a machine-readable storage medium storing instructions for causing a machine to perform the aforementioned method for compensating the output volume of a voice broadcasting device.
[0034] The above technical solution detects whether a user is present on each seat in the vehicle and determines the label value of each seat based on the detection results; obtains the initial distance between each seat and each voice broadcasting device in the vehicle; determines the actual distance between each seat and each voice broadcasting device; determines the deviation distance between each seat and each voice broadcasting device based on the initial and actual distances; determines the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats; and determines the compensation volume of each voice broadcasting device based on the weighted deviation distance and the initial output volume to compensate for each voice broadcasting device, thereby achieving personalized adjustment of the output volume of the voice broadcasting device corresponding to each seat, improving the output effect of the voice broadcasting device, realizing adaptive volume adjustment, and enhancing the user experience.
[0035] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description
[0036] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings:
[0037] Figure 1 The illustration schematically shows a flowchart of a method for compensating the output volume of a voice broadcasting device according to an embodiment of this application;
[0038] Figure 2 A schematic diagram of a vehicle according to an embodiment of this application is shown;
[0039] Figure 3 A schematic diagram of a seat according to an embodiment of this application is shown;
[0040] Figure 4This illustration schematically shows a diagram illustrating the offset relationship between a seat and a voice broadcasting device according to an embodiment of this application;
[0041] Figure 5 This illustration schematically shows a diagram of the offset distance between a seat and a voice broadcasting device according to an embodiment of this application;
[0042] Figure 6 Another schematic diagram of a vehicle according to an embodiment of this application is shown;
[0043] Figure 7 The diagram illustrates the internal structure of a computer device according to an embodiment of this application. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for illustration and explanation of the embodiments of this application and are not intended to limit the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0045] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0046] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0047] Figure 1 The illustration schematically shows a flowchart of a method for compensating the output volume of a voice broadcasting device according to an embodiment of this application. Figure 1As shown in the figure, this application provides a method for compensating the output volume of a voice broadcasting device, applied to a vehicle, the vehicle including a voice broadcasting device and a seat, the method including the following steps.
[0048] Step 101: Detect whether there is a user in each seat in the vehicle, and determine the tag value of each seat based on the detection results.
[0049] The vehicle may include a voice broadcasting device and seats. The voice broadcasting device can be a speaker, horn, etc. The processor can detect whether a user is in each seat in the vehicle and determine the tag value of each seat based on the detection results. Specifically, pressure sensors installed at the bottom of the seats can detect the pressure of each seat to determine whether a user is in the seat.
[0050] In this embodiment of the application, determining the label value of each seat based on the detection results includes: for any seat, if the detection result of any seat indicates that a user is present on any seat, determining the label value of any seat to be a first preset value; for any seat, if the detection result of any seat indicates that no user is present on any seat, determining the label value of any seat to be a second preset value.
[0051] The processor can determine the tag value for each seat based on the detection results. Specifically, for any given seat, the processor can determine whether the detection result for that seat indicates the presence of a user. If the detection result for any given seat indicates the presence of a user, the processor can determine the tag value for that seat to be a first preset value. The first preset value can be determined based on user needs; in a specific embodiment, the first preset value can be 1. If the detection result for any given seat indicates the absence of a user, the processor can determine the tag value for that seat to be a second preset value. The second preset value can be determined based on user needs; in a specific embodiment, the second preset value can be 0.
[0052] In one embodiment, such as Figure 2 As shown, the vehicle may include four seats: a driver's seat, a front passenger seat, a rear left seat, and a rear right seat. Each seat includes four mid-range speakers, two tweeters, one center speaker, and one woofer. A pressure sensor is installed under each seat. Figure 3As shown, the pressure sensor can include a bridge sensor and an HX711 chip. The bridge sensor consists of a Wheatstone bridge composed of four resistors. When unloaded, the bridge is in a balanced state, meaning the output voltage E0 = the input voltage Ex. When a heavy object is placed on the tray, the force F > 0, causing the metal strip to deform to a certain extent. This changes the resistance of the strain gauges R1 to R4, resulting in a voltage difference between the output voltage E0 and the output voltage Ex. The HX711 chip has two analog input channels and integrates a 128x gain programmable amplifier, making it a high-precision measurement module. If a user is detected in the driver's seat and no other users are detected in the other seats, the driver's EQ (Equalizer) will be activated; if a user is detected in the driver's seat and / or front passenger seat and no other users are detected in the other seats, the front EQ will be activated; if a user is detected in the driver's seat and / or front passenger seat and a user is detected in the rear seats, the entire vehicle's EQ will be activated; if no user is detected in the driver's seat and / or front passenger seat and a user is detected in the rear seats, the rear EQ will be activated; if no user is detected in the entire vehicle, the entire vehicle's EQ will be activated, thus automatically adjusting the EQ according to the user's location.
[0053] Step 102: Obtain the initial distance between each seat and each voice broadcasting device in the vehicle.
[0054] Step 103: Determine the actual distance between each seat and each voice broadcasting device.
[0055] The processor can obtain the initial distance between each seat and each voice broadcasting device in the vehicle. Preferably, the initial distance can refer to the distance between the seat headrest and the voice broadcasting device, and the initial distance can be set by the user based on their needs during the vehicle's layout. The processor can determine the actual distance between each seat and each voice broadcasting device in the vehicle.
[0056] In this embodiment of the application, the vehicle further includes a Hall sensor. Determining the actual distance between each seat and each voice broadcasting device includes: acquiring a pulse wave between any seat and any voice broadcasting device collected by the Hall sensor; determining the forward and backward movement distance, vertical movement distance, and tilt angle of any seat relative to any voice broadcasting device based on the pulse wave; and determining the actual distance between any seat and any voice broadcasting device based on the forward and backward movement distance, vertical movement distance, and tilt angle.
[0057] The vehicle also includes Hall sensors. Specifically, for any seat and any voice broadcasting device, the processor can acquire the pulse wave between the seat and the voice broadcasting device collected by the Hall sensors. After obtaining the pulse wave between the seat and the voice broadcasting device, the processor can determine the forward / backward movement distance, vertical movement distance, and tilt angle of the seat relative to the voice broadcasting device based on the pulse wave. In a specific embodiment, each seat can be equipped with three Hall sensors, used to measure the forward / backward movement, seat movement, and tilt angle of the seat, respectively. The processor can determine the actual distance between each seat and each voice broadcasting device. The processor can pre-store a relationship table between pulse waves, movement distances, and tilt angles, which can be constructed based on multiple historical pulse waves, historical movement distances, and historical tilt angles. After obtaining the forward / backward movement distance, vertical movement distance, and tilt angle of the seat relative to the voice broadcasting device, the processor can determine the actual distance between the seat and the voice broadcasting device based on the forward / backward movement distance, vertical movement distance, and tilt angle. For example, as... Figure 4 As shown, the initial straight-line distance between seat m and speaker n is Xmn, the horizontal and vertical distance is Zmn, and the seat back height of seat m is G. The processor can determine the forward and backward movement distance Sa, the vertical movement distance Sb, and the seat rotation angle α of seat m relative to speaker n based on the pulse wave of the Hall sensor. Then, based on the forward and backward movement distance Sa, the vertical movement distance Sb, and the seat rotation angle α, the actual distance Ymn between seat m and speaker n is determined.
[0058] Step 104: Determine the deviation distance between each seat and each voice broadcasting device based on the initial distance and the actual distance between each seat and each voice broadcasting device.
[0059] Step 105: Determine the weighted deviation distance for each voice broadcasting device based on all deviation distances and the label values for all seats.
[0060] After determining the actual distance between each seat and each voice broadcasting device, the processor can determine the deviation distance between each seat and each voice broadcasting device based on the initial distance and the actual distance between them. In an optional embodiment, the processor can determine the deviation distance between each seat and each voice broadcasting device as the difference between the actual distance and the initial distance. For example, as... Figure 5As shown, the deviation distance between seat m and voice broadcasting device n is expressed as Amn = |Ymn - Xmn|, where Amn represents the deviation distance between seat m and voice broadcasting device n, Ymn represents the actual distance between seat m and voice broadcasting device n, and Xmn represents the initial distance between seat m and voice broadcasting device n. After determining the deviation distance between each seat and each voice broadcasting device, the processor can determine the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats.
[0061] In this embodiment of the application, determining the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats includes: determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device; and for each voice broadcasting device, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats.
[0062] The processor can determine the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats. Specifically, the processor can determine the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device. In this embodiment, determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device includes determining the weight of each seat relative to each voice broadcasting device according to formula (2):
[0063]
[0064] Among them, W mn Y represents the weight of the m-th seat relative to the n-th voice broadcasting device. mn Y is the actual distance between the m-th seat and the n-th voice broadcasting device. 1n Y is the actual distance between the first seat and the nth voice broadcasting device. 2n Y is the actual distance between the second seat and the nth voice broadcasting device. pn Let be the actual distance between the p-th seat and the n-th voice broadcasting device, N be the total number of voice broadcasting devices, and M be the total number of seats in the vehicle.
[0065] After determining the weight of each seat relative to each voice broadcasting device, for each voice broadcasting device, the processor can determine the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats. This more intuitively reflects the listening effect of users in different seats in the vehicle, which is beneficial for subsequent output compensation.
[0066] In this embodiment, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats includes determining the weighted deviation distance of the voice broadcasting device according to formula (1):
[0067]
[0068] Among them, S n W is the weighted deviation distance of the nth voice broadcasting device. mn Let A be the weight of the nth voice broadcasting device relative to the mth seat. mn Let T be the deviation distance between the nth voice broadcasting device and the mth seat. m Let m be the label value of the m-th seat, where M is the total number of seats in the vehicle.
[0069] Step 106: Determine the compensation volume for each voice broadcasting device based on the weighted deviation distance and initial output volume of each voice broadcasting device, in order to compensate each voice broadcasting device.
[0070] After determining the weighted deviation distance of each voice broadcasting device, the processor can determine the compensation volume of each voice broadcasting device based on the weighted deviation distance and the initial output volume of each voice broadcasting device, so as to compensate each voice broadcasting device.
[0071] In this embodiment of the application, determining the compensation volume of each voice broadcasting device based on the weighted deviation distance and initial output volume of each voice broadcasting device includes:
[0072] The compensated output volume of each voice broadcasting device is determined according to formula (3):
[0073] V n =(CS n +1)×V n ′,(n=1、2…N) (3)
[0074] Among them, V n Let S be the output volume of the nth voice broadcasting device after compensation, where C is a constant and S is a variable. n V is the weighted deviation distance of the nth voice broadcasting device. n′ represents the initial output volume of the nth voice broadcasting device, and N represents the total number of voice broadcasting devices;
[0075] The difference between the compensated output volume of each voice broadcasting device and the initial output volume of each voice broadcasting device is determined as the compensated volume of each voice broadcasting device.
[0076] The processor determines the compensated output volume for each voice broadcasting device based on the weighted offset distance and initial output volume. After obtaining the compensated output volume for each voice broadcasting device, the processor determines the compensation volume for each device by the difference between the compensated output volume and the initial output volume. This allows for targeted adjustments to each voice broadcasting device based on the offset distance of all seats in the vehicle, effectively improving the user experience.
[0077] In one embodiment, taking speaker 1, seat 1, seat 2, seat 3, and seat 4 as an example, assuming the actual distance Y11 between seat 1 and speaker 1 is 0.5m, the actual distance Y21 between seat 2 and speaker 1 is 1m, the actual distance Y31 between seat 3 and speaker 1 is 1m, and the actual distance Y41 between seat 4 and speaker 1 is 2m, then the weight of seat 1 relative to speaker 1 is... Weight of seat 2 relative to speaker 1 Weight of seat 3 relative to speaker 1 Weight of seat 4 relative to speaker 1 Assume the deviation distance A11 between seat 1 and speaker 1 is 0.2m, the deviation distance A21 between seat 2 and speaker 1 is 0.1m, the deviation distance A31 between seat 3 and speaker 1 is -0.2m, and the deviation distance A41 between seat 4 and speaker 1 is 0.1m. Also, the label value T1 for seat 1 is 1, the label value T2 for seat 2 is 0, the label value T3 for seat 3 is 1, and the label value T4 for seat 4 is 1. Then, the weighted deviation distance of speaker 1... After obtaining the weighted offset distance S1 of speaker 1, the processor can determine the compensated output volume of speaker 1. Where C is a constant, meaning the output volume of speaker 1 needs to increase. Assuming the initial output volume V1' of speaker 1 is 10dB and the constant C is 15, then speaker 1 needs to compensate for a volume of 1dB, resulting in a compensated volume of 11dB. This allows the speaker volume to be adjusted in real-time based on the user's seat adjustments, meaning different speakers will output different compensated volumes depending on the seat's adjustment, thus meeting the personalized needs of different users. Ideally, the actual distance and offset distance of the seat can be the same as the actual distance and offset distance of the headrest for even better volume output.
[0078] The above technical solution enables personalized adjustment of the output volume of the voice broadcasting device corresponding to each seat, improves the output effect of the voice broadcasting device, achieves adaptive volume adjustment, and enhances the user experience.
[0079] Figure 1 This is a flowchart illustrating a method for compensating the output volume of a voice broadcasting device in one embodiment. It should be understood that, although... Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0080] This application embodiment also provides a device for compensating the output volume of a voice broadcasting device, comprising:
[0081] The memory is configured to store instructions;
[0082] The processor is configured to retrieve instructions from memory and, when executing the instructions, to implement the aforementioned method for compensating the output volume of the voice broadcasting device.
[0083] This application also provides a vehicle, including:
[0084] Voice broadcasting device;
[0085] Seats;
[0086] The aforementioned device for compensating the output volume of a voice broadcasting device.
[0087] In one embodiment, such as Figure 6 As shown, another schematic diagram of a vehicle is provided, including:
[0088] The in-vehicle entertainment module communicates with the in-vehicle power amplifier module and the in-vehicle gateway module via the in-vehicle bus. It is used to transmit digital audio signal streams to the in-vehicle power amplifier module via the in-vehicle bus. The in-vehicle bus is a communication protocol used in automotive and industrial applications.
[0089] The vehicle power amplifier module communicates with the vehicle gateway module via the vehicle bus, and communicates with the seat pressure sensor and the seat HALL sensor via a single bus. This is used to process the seat deviation distance, obtain the weighted deviation distance of each speaker, and obtain the output compensation amount based on the weighted deviation distance. Output compensation is then performed on each speaker based on the output compensation amount.
[0090] The vehicle gateway module is used to transmit host control button messages to the vehicle power amplifier module via the vehicle bus.
[0091] The seat pressure sensor is used to detect whether there is a person in the seat and transmits the seat information to the vehicle amplifier module via a single bus.
[0092] The seat hall sensor detects the distance between the seat and the speaker and transmits the distance to the vehicle amplifier module via a single bus.
[0093] This application also provides a machine-readable storage medium storing instructions that cause a machine to perform the above-described method for compensating the output volume of a voice broadcasting device.
[0094] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown), and a database (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and a database (not shown). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A04. The database stores data such as tag values, initial distance, actual distance, deviation distance, weighted deviation distance, initial output volume, and compensation volume. The network interface A02 communicates with external terminals via a network connection. When executed by the processor A01, the computer program B02 implements a method for compensating the output volume of a voice broadcasting device.
[0095] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0096] This application provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: detecting whether a user is present on each seat in the vehicle and determining a tag value for each seat based on the detection results; obtaining the initial distance between each seat and each voice broadcasting device in the vehicle; determining the actual distance between each seat and each voice broadcasting device; determining the deviation distance between each seat and each voice broadcasting device based on the initial and actual distances; determining the weighted deviation distance of each voice broadcasting device based on all deviation distances and the tag values of all seats; and determining the compensation volume of each voice broadcasting device based on the weighted deviation distance and the initial output volume to compensate for each voice broadcasting device.
[0097] In one embodiment, determining the weighted deviation distance of each voice broadcasting device based on all deviation distances and the label values of all seats includes: determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device; and for each voice broadcasting device, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats.
[0098] In one embodiment, determining the weighted deviation distance of the voice broadcasting device based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats includes determining the weighted deviation distance of the voice broadcasting device according to formula (1):
[0099]
[0100] Among them, S n W is the weighted deviation distance of the nth voice broadcasting device. mn Let A be the weight of the nth voice broadcasting device relative to the mth seat. mn Let T be the deviation distance between the nth voice broadcasting device and the mth seat. m Let m be the label value of the m-th seat, where M is the total number of seats in the vehicle.
[0101] In one embodiment, determining the weight of each seat relative to each voice broadcasting device based on the actual distance between each seat and each voice broadcasting device includes determining the weight of each seat relative to each voice broadcasting device according to formula (2):
[0102]
[0103] Among them, W mn Y represents the weight of the m-th seat relative to the n-th voice broadcasting device. mn Y is the actual distance between the m-th seat and the n-th voice broadcasting device. 1n Y is the actual distance between the first seat and the nth voice broadcasting device. 2n Y is the actual distance between the second seat and the nth voice broadcasting device. pn Let be the actual distance between the p-th seat and the n-th voice broadcasting device, N be the total number of voice broadcasting devices, and M be the total number of seats in the vehicle.
[0104] In one embodiment, the vehicle further includes a Hall sensor, and determining the actual distance between each seat and each voice broadcasting device includes: acquiring a pulse wave between the seat and the voice broadcasting device collected by the Hall sensor for any seat and any voice broadcasting device; determining the forward and backward movement distance, vertical movement distance, and tilt angle of the seat relative to the voice broadcasting device based on the pulse wave; and determining the actual distance between the seat and the voice broadcasting device based on the forward and backward movement distance, vertical movement distance, and tilt angle.
[0105] In one embodiment, determining the compensation volume for each voice broadcasting device based on the weighted deviation distance and initial output volume of each voice broadcasting device includes:
[0106] The compensated output volume of each voice broadcasting device is determined according to formula (3):
[0107] V n =(CS n +1)×V n ′,(n=1、2…N) (3)
[0108] Among them, V n Let S be the output volume of the nth voice broadcasting device after compensation, where C is a constant and S is a variable. n V is the weighted deviation distance of the nth voice broadcasting device. n ′ represents the initial output volume of the nth voice broadcasting device, and N represents the total number of voice broadcasting devices;
[0109] The difference between the compensated output volume of each voice broadcasting device and the initial output volume of each voice broadcasting device is determined as the compensated volume of each voice broadcasting device.
[0110] In one embodiment, determining the label value of each seat based on the detection results includes: for any seat, if the detection result of any seat indicates that a user is present in any seat, determining the label value of any seat to be a first preset value; and for any seat, if the detection result of any seat indicates that no user is present in any seat, determining the label value of any seat to be a second preset value.
[0111] This application also provides a computer program product that, when executed on a data processing device, is adapted to perform a program having method steps for initializing the output volume of a voice broadcasting device.
[0112] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0113] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0114] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0115] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0116] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0117] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0118] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0119] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0120] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for compensating the output volume of a voice broadcasting device, characterized in that, Applied to a vehicle, the vehicle including the voice broadcasting device and a seat, the method includes: The system detects whether a user is present in each seat of the vehicle and determines the tag value for each seat based on the detection results. Obtain the initial distance between each seat and each voice broadcasting device in the vehicle; Determine the actual distance between each seat and each voice broadcasting device; The deviation distance between each seat and each voice broadcasting device is determined based on the initial and actual distances between each seat and each voice broadcasting device; The weighted deviation distance of each voice broadcasting device is determined based on all deviation distances and the label values of all seats; The compensation volume for each voice broadcasting device is determined based on the weighted deviation distance and initial output volume of each voice broadcasting device, in order to compensate for each voice broadcasting device.
2. The method for compensating the output volume of a voice broadcasting device according to claim 1, characterized in that, The determination of the weighted deviation distance for each voice broadcasting device based on all deviation distances and all seat label values includes: The weight of each seat relative to each voice broadcasting device is determined based on the actual distance between each seat and each voice broadcasting device; For each voice broadcasting device, the weighted deviation distance of the voice broadcasting device is determined based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats.
3. The method for compensating the output volume of a voice broadcasting device according to claim 2, characterized in that, The weighted deviation distance of the voice broadcasting device is determined based on the weights of all seats relative to the voice broadcasting device, the deviation distance between the voice broadcasting device and all seats, and the label values of all seats. This includes determining the weighted deviation distance of the voice broadcasting device according to formula (1): Among them, S n W is the weighted deviation distance of the nth voice broadcasting device. mn Let A be the weight of the nth voice broadcasting device relative to the mth seat. mn Let T be the deviation distance between the nth voice broadcasting device and the mth seat. m Let m be the label value of the m-th seat, and M be the total number of seats in the vehicle.
4. The method for compensating the output volume of a voice broadcasting device according to claim 2, characterized in that, The weight of each seat relative to each voice broadcasting device is determined based on the actual distance between each seat and each voice broadcasting device, including determining the weight of each seat relative to each voice broadcasting device according to formula (2): Among them, W mn Y represents the weight of the m-th seat relative to the n-th voice broadcasting device. mn Y is the actual distance between the m-th seat and the n-th voice broadcasting device. 1n Y is the actual distance between the first seat and the nth voice broadcasting device. 2n Y is the actual distance between the second seat and the nth voice broadcasting device. pn Let N be the actual distance between the p-th seat and the n-th voice broadcasting device, N be the total number of voice broadcasting devices, and M be the total number of seats in the vehicle.
5. The method for compensating the output volume of a voice broadcasting device according to claim 1, characterized in that, The vehicle also includes Hall sensors, and determining the actual distance between each seat and each voice broadcast device includes: For any seat and any voice broadcasting device, acquire the pulse wave between the seat and the voice broadcasting device collected by the Hall sensor; The forward and backward movement distance, vertical movement distance, and tilt angle of any seat relative to any voice broadcasting device are determined based on the pulse wave. The actual distance between any seat and any voice broadcasting device is determined based on the forward and backward movement distance, the up and down movement distance, and the tilt angle.
6. The method for compensating the output volume of a voice broadcasting device according to claim 1, characterized in that, The process of determining the compensation volume for each voice broadcasting device based on the weighted deviation distance and initial output volume of each device includes: The compensated output volume of each voice broadcasting device is determined according to formula (3): V n =(CS n +1)×V′ n ,(n=1、2…N) (3) Among them, V n Let S be the output volume of the nth voice broadcasting device after compensation, where C is a constant and S is a variable. n V′ is the weighted deviation distance of the nth voice broadcasting device. n Let N be the initial output volume of the nth voice broadcasting device, and N be the total number of voice broadcasting devices. The difference between the compensated output volume of each voice broadcasting device and the initial output volume of each voice broadcasting device is determined as the compensated volume of each voice broadcasting device.
7. The method for compensating the output volume of a voice broadcasting device according to claim 1, characterized in that, Based on the test results, the label values for each seat include: For any given seat, if the detection result for that seat indicates that a user is present in that seat, the label value for that seat is determined to be a first preset value; For any given seat, if the detection result for that seat indicates that there is no user on that seat, the label value for that seat is determined to be the second preset value.
8. A device for compensating the output volume of a voice broadcasting device, characterized in that, include: The memory is configured to store instructions; The processor is configured to retrieve the instructions from the memory and, when executing the instructions, to implement the method for compensating the output volume of a voice broadcasting device according to any one of claims 1 to 7.
9. A vehicle, characterized in that, include: Voice broadcasting device; Seats; The apparatus for compensating the output volume of a voice broadcasting device according to claim 8.
10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores instructions for causing the machine to perform a method for compensating the output volume of a voice broadcasting device according to any one of claims 1 to 7.