Volume adjustment method, device and electronic equipment

By determining the distance between personnel and equipment and collecting ambient noise on the robot, the volume of voice playback is automatically adjusted, solving the problem of unsuitable voice playback volume and achieving reasonable volume control.

CN115129294BActive Publication Date: 2026-03-17HANGZHOU HIKROBOT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

When a robot is performing a task, excessively loud voice playback volume may cause auditory discomfort, while excessively low volume may prevent the robot from hearing the information. How can we automatically determine the appropriate voice playback volume?

Method used

By determining the distance between people and equipment within a preset range and taking into account ambient noise, the volume of voice playback is automatically adjusted.

Benefits of technology

It enables automatic volume adjustment of voice playback devices, improves the rationality of volume adjustment, and ensures that people can hear information clearly without experiencing auditory discomfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129294B_ABST
    Figure CN115129294B_ABST
Patent Text Reader

Abstract

This application provides a volume adjustment method, apparatus, and electronic device. The method includes: determining the distance between a person and the device within a preset distance range; determining a target volume value for voice playback based on the distance between the person and the device, and collected ambient noise; and controlling the device to play voice at the target volume value. This method may include enabling automatic volume adjustment of the voice playback device and improving the rationality of automatic volume adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automation equipment, and more particularly to a volume adjustment method, device, and electronic device. Background Technology

[0002] In the logistics and industrial sectors, robots, such as AGVs (Automated Guided Vehicles) and AMRs (Autonomous Mobile Robots), are becoming increasingly widely used.

[0003] Robots may require voice playback during task execution, such as automatically playing real-time fault information. If the voice playback volume is too loud, it may cause auditory discomfort to personnel; if the voice playback volume is too low, personnel may not be able to hear the voice information.

[0004] How to automatically determine the appropriate volume level for voice playback has become a pressing technical problem that needs to be solved. Summary of the Invention

[0005] In view of this, this application provides a volume adjustment method, apparatus, and electronic device.

[0006] According to a first aspect of the embodiments of this application, a volume adjustment method is provided, applied to a voice playback device, the method comprising:

[0007] Determine the distance between personnel and this equipment within a preset distance range;

[0008] Based on the distance between the person and the device, and the collected ambient noise, the target volume value for voice playback is determined;

[0009] Control this device to play voice at the target volume value.

[0010] According to a second aspect of the embodiments of this application, a volume adjustment device is provided, deployed in a voice playback device, the device comprising:

[0011] The first determining unit is used to determine the distance between personnel and the equipment within a preset distance range;

[0012] Noise acquisition unit, used to collect ambient noise;

[0013] The second determining unit is used to determine the target volume value for voice playback based on the distance between the person and the device, and the collected ambient noise.

[0014] The volume adjustment unit is used to control the device to play voice at the target volume value.

[0015] According to a third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being configured to execute the machine-executable instructions to implement the method provided in the first aspect.

[0016] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, it implements the method provided in the first aspect.

[0017] According to a fifth aspect of the embodiments of this application, a computer program is provided, which is stored in a machine-readable storage medium, and when a processor executes the computer program, causes the processor to perform the method provided in the first aspect.

[0018] The volume adjustment method of this application embodiment determines the distance between a person and a voice playback device within a preset distance range, and determines the target volume value for voice playback based on the determined distance between the person and the voice playback device and the collected ambient noise. Then, it controls the voice playback device to play voice at the target volume value, thereby realizing automatic volume adjustment of the voice playback device and improving the rationality of automatic volume adjustment. Attached Figure Description

[0019] Figure 1 This is a schematic flowchart of a volume adjustment method provided in an embodiment of this application;

[0020] Figure 2 This is a schematic diagram of a volume adjustment system provided in an embodiment of this application;

[0021] Figure 3A This is a schematic diagram of the module deployment of a voice playback device provided in an embodiment of this application;

[0022] Figure 3B This is a schematic diagram of a wireless positioning method for locating people within a certain distance, provided in an embodiment of this application.

[0023] Figure 3C and Figure 3D This is a schematic diagram of the sensor positioning distance area for personnel provided in an embodiment of this application;

[0024] Figure 4 This is a schematic diagram of the structure of a volume adjustment device provided in an embodiment of this application;

[0025] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0027] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0028] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0029] It should be noted that the sequence number of each step in the embodiments of this application does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0030] Please see Figure 1 This is a schematic flowchart illustrating a volume adjustment method provided in an embodiment of this application. The volume adjustment method can be applied to a voice playback device, such as... Figure 1 As shown, the volume adjustment method may include the following steps:

[0031] It should be noted that the aforementioned voice playback device may include any device equipped with a voice output module, such as mobile devices like robots.

[0032] Step S100: Determine the distance between personnel and this equipment within a preset distance range.

[0033] In this embodiment of the application, the above-mentioned preset distance range can be set according to actual needs. For example, the preset distance range can be set according to the ability of people at different distances from the voice playback device to understand the voice at different volumes played by the voice playback device.

[0034] For example, if the distance between a person and the voice playback device exceeds L0, and the voice playback device plays the voice at its maximum supported volume, a normal person cannot correctly understand the voice being played, or cannot hear the voice being played. In this case, the aforementioned preset distance range can be the area centered on the voice playback device with a radius of L0.

[0035] In this embodiment, personnel identification can be performed within a preset distance range of the voice playback device, and if a person is identified, the distance between the identified person and the voice playback device can be determined.

[0036] For example, personnel detection can be implemented based on wireless devices, or based on sensors such as vision or laser sensors, or millimeter-wave radar.

[0037] For example, a wireless terminal can be installed on the voice playback device, and relevant personnel can carry a designated wireless terminal, such as a smart wearable device or a work badge. The wireless AP (Access Point) uses wireless positioning to determine the coordinates of the voice playback device and the personnel. Once it is determined that the relevant personnel have entered a preset distance range from the voice playback device, the coordinates of the voice playback location and the personnel's coordinates are sent to the voice playback device. Thus, the voice playback device can determine the distance between the personnel and the device.

[0038] For example, the voice playback device can identify people by installing visual or laser sensors, and if a person is identified, determine the distance between the identified person and the device. If the distance is within a preset distance range, step S110 is executed.

[0039] It should be noted that when the voice playback device is a mobile device, such as a mobile robot, the voice playback device can determine the distance between the device and people within a preset distance range in real time or periodically.

[0040] Step S110: Based on the determined distance between the personnel and the device, and the collected ambient noise, determine the target volume value for voice playback.

[0041] In this embodiment of the application, the distance between the person and the voice playback device, as well as the current ambient noise, are taken into account, which will affect the person's understanding of the voice information played by the voice playback device and the auditory comfort.

[0042] Accordingly, on the one hand, the distance between people and the voice playback device within the preset distance range can be determined in the manner described in step S100; on the other hand, environmental noise can be collected.

[0043] For example, the volume value (referred to herein as the target volume value) for voice playback can be determined based on the determined distance between the person and the device, as well as the collected ambient noise.

[0044] Step S120: Control the device to play voice at the target volume value.

[0045] In this embodiment of the application, the device can be controlled to play voice at the target volume value determined in step S110.

[0046] It can be seen that, in Figure 1 In the method flow shown, the distance between the person and the voice playback device within a preset distance range is determined. Based on the determined distance between the person and the voice playback device, as well as the collected ambient noise, the target volume value for voice playback is determined. Then, the voice playback device is controlled to play voice at the target volume value, thereby realizing automatic volume adjustment of the voice playback device and improving the rationality of automatic volume adjustment.

[0047] In some embodiments, the voice playback device is equipped with a first wireless terminal;

[0048] The aforementioned determination of the distance between personnel and the device within a preset distance range may include:

[0049] Based on the coordinates of the person within a preset distance range and the coordinates of the first wireless terminal, the distance and angle of the person within the preset distance range relative to the first wireless terminal are determined; wherein, the coordinates of the person within the preset distance range are determined based on the positioning information of the second wireless terminal carried by the person.

[0050] Based on the distance and angle between the voice output module installed on this device and the first wireless terminal, and the distance and angle between the person within the preset distance range and the first wireless terminal, the distance between the person within the preset distance range and the voice output module is determined.

[0051] For example, consider determining the distance between a person and a voice playback device using a wireless device.

[0052] The voice playback device can be equipped with a wireless terminal for positioning (referred to as the first wireless terminal in this document), and relevant personnel can carry a wireless terminal for wireless positioning (referred to as the second wireless terminal in this document). Wireless devices, such as wireless APs, can determine the coordinates of the first wireless terminal and the second wireless terminal through wireless positioning.

[0053] For example, the coordinate positions of the first wireless terminal and the second wireless terminal can be the coordinate positions of the first wireless terminal and the second wireless terminal in the coordinate system of the wireless AP.

[0054] For example, the wireless AP can determine the distance between the person carrying the second wireless terminal and the voice playback device based on the coordinate positions of the first wireless terminal and the second wireless terminal, and send the coordinate positions of both the first and second wireless terminals to the voice playback device if the distance between the person and the voice playback device is within a preset distance range.

[0055] It should be noted that if the location of the voice playback device and / or the person carrying the second wireless terminal changes, the wireless AP can send the changed coordinates of the first wireless terminal and / or the changed coordinates of the second wireless terminal to the voice playback device.

[0056] For example, the voice playback device can determine the distance and angle of the person carrying the second wireless terminal relative to the first wireless terminal based on the coordinate positions of the first wireless terminal and the second wireless terminal.

[0057] For example, the distance between wireless terminals can be a Euclidean distance.

[0058] For example, the angle of a person relative to the first wireless terminal can be characterized by the slope of the line connecting the first and second wireless terminals after mapping the coordinate positions of the second and first wireless terminals to the coordinate system of the voice playback device.

[0059] For example, the voice playback device can determine the distance between the person and the voice output module within the preset distance range based on the distance and angle between the person and the first wireless terminal within the preset distance range, and the distance and angle between the voice output module installed on the voice playback device and the first wireless terminal.

[0060] It should be noted that the distance and angle between the voice output module installed on the voice playback device and the first wireless terminal can be determined based on the installation parameters of the voice output module and the first wireless terminal.

[0061] For example, the angle between the voice output module installed on the voice playback device and the first wireless terminal can be the slope of the line connecting the voice output module and the first wireless terminal in the coordinate system of the voice playback device.

[0062] In some embodiments, the voice playback device is equipped with sensors for person identification and distance measurement;

[0063] The aforementioned determination of the distance between personnel and the device within a preset distance range may include:

[0064] The sensor determines the distance and angle of a person relative to a visual or laser sensor within a preset distance range.

[0065] Based on the distance and angle between the voice output module installed on this device and the sensor, and the distance and angle between the person within the preset distance range and the sensor, the distance between the person within the preset distance range and the voice output module is determined.

[0066] For example, consider determining the distance between a person and a voice playback device based on sensors.

[0067] The voice playback device can determine the distance and angle of people relative to the sensors within a preset distance range by using installed sensors.

[0068] It should be noted that for vision sensors, the coordinates of the detected person can be obtained by converting the image coordinates of the person into coordinates in the coordinate system of the voice playback device. Based on the coordinates of the sensor and the person in the coordinate system of the voice playback device, the distance and angle of the person relative to the sensor can be determined.

[0069] For example, the angle of a person relative to the sensor can be characterized by the slope of the line connecting the person and the sensor, determined after mapping the person's coordinate position to the coordinate system of the voice playback device.

[0070] For example, the voice playback device can determine the distance between a person within a preset distance range and the voice output module based on the distance and angle between the person and the visual or laser sensor within the preset distance range, and the distance and angle between the voice output module and the visual or laser sensor.

[0071] It should be noted that the distance and angle between the voice output module installed on the voice playback device and the sensor can be determined based on the installation parameters of the voice output module and the sensor.

[0072] For example, the angle between the voice output module installed on the voice playback device and the sensor can be the slope of the line connecting the voice output module and the sensor in the coordinate system of the voice playback device.

[0073] In one example, the voice playback device is equipped with two voice output modules and two sensors, each with a position matching the position of the two voice output modules; the detection range of either sensor is less than 360°, and the union of the detection ranges of the two sensors covers 360°.

[0074] The aforementioned determination of the distance between personnel and the device within a preset distance range may include:

[0075] For a person within the detection range of the first sensor but outside the detection range of the second sensor, the distance and angle of the person relative to the first sensor are detected by the first sensor, and this distance is determined as the distance between the person and the first voice output module. Furthermore, based on the distance and angle of the person relative to the first sensor and the distance and angle of the second sensor relative to the first sensor, the distance between the person and the second voice output module is determined. The second voice output module is a voice output module whose installation position matches the installation position of the second sensor.

[0076] For a person within the detection range of the first sensor and the detection range of the second sensor, the distance between the person and the first sensor is detected by the first sensor and determined as the distance between the person and the first voice output module; and the distance between the person and the second sensor is detected by the second sensor and determined as the distance between the person and the second voice output module.

[0077] For example, considering real-world scenarios, in order to optimize the voice playback effect, the voice playback device may install voice output modules in different locations (i.e., the voice playback device may install at least two voice output modules).

[0078] Furthermore, considering that the detection angle of a single sensor may not be able to cover 360°, meaning that a single sensor may not be able to fully cover the perimeter of the voice playback device, at least two sensors can be deployed in different locations for personnel identification and distance determination.

[0079] Furthermore, in order to improve the efficiency of determining the distance between a person and the voice output module, sensors matching the installation location of each voice output module can be installed, and the distance between the person and the sensor can be used as the distance between the person and the voice output module.

[0080] Taking a voice playback device with two voice output modules and two sensors as an example, the installation positions of the two sensors are matched with the installation positions of the two voice output modules. The detection range of either of the two sensors is less than 360°, and the union of the detection ranges of the two sensors covers 360°.

[0081] For example, if one of the two sensors can identify a person but the other cannot, on the one hand, the distance and angle of the person relative to the first sensor can be determined based on the sensor that identified the person (referred to as the first sensor in this document), and this distance can be determined as the distance between the person and the first voice output module.

[0082] On the other hand, the distance between the person and the second sensor can be determined based on the distance and angle between the person and the first sensor, and the distance and angle between the sensor that cannot identify the person (referred to as the second sensor in this article) and the first sensor, and the distance between the person and the second sensor can be used as the distance between the person and the second voice output module.

[0083] The first voice output module is a voice output module whose installation position matches the installation position of the first sensor; the second voice output module is a voice output module whose installation position matches the installation position of the second sensor.

[0084] For example, for a person that can be identified by both sensors, that is, a person within the detection range of the first sensor and the detection range of the second sensor, on the one hand, the distance of the person relative to the first sensor can be detected by the first sensor, and the distance can be determined as the distance between the person and the first voice output module.

[0085] On the other hand, the distance between the person and the second sensor can be detected by the second sensor, and this distance can be determined as the distance between the person and the second voice output module.

[0086] In some embodiments, the voice playback device is equipped with at least one voice output module;

[0087] The distance between the personnel and this equipment mentioned above includes the distance between the personnel and the voice output module installed on this equipment;

[0088] The above-mentioned determination of the target volume value for voice playback based on the distance between the person and the device, and the collected ambient noise, may include:

[0089] For any voice output module, the target volume value for voice playback by the voice output module is determined based on the distance between the target person and the voice output module, as well as the collected ambient noise; wherein, the target person is the person closest to the voice output module within the preset distance range.

[0090] For example, the distance between a person and the voice output module represents the distance between a person and the voice playback device.

[0091] Considering that people at different distances from the voice output module will have different experiences with volume adjustment, if the volume is too high, the person closest to the module may experience hearing discomfort; if the volume is too low, the person furthest from the module may not be able to hear clearly, while the person closest to the module will usually be able to hear clearly. Therefore, to ensure that people within a preset distance can hear clearly while avoiding hearing discomfort, the person closest to the voice output module within the preset distance (referred to as the target person in this paper) can be identified. Based on the distance between the target person and the voice output module, and the collected ambient noise, the target volume value for voice playback by the voice output module can be determined.

[0092] For example, if there is only one person within the preset distance range of the voice output module, that person is the target person who is closest to the voice output module within the preset distance range.

[0093] In some embodiments, determining the target volume value for voice playback based on the distance between the person and the device, and the collected ambient noise, may include:

[0094] A first volume value is determined based on the distance between the person and the device; and a second volume value is determined based on the collected ambient noise.

[0095] The target volume value for voice playback is determined based on the first volume value and the second volume value.

[0096] For example, when the voice playback device determines the distance between a person and the device within a preset distance range in the manner described above, on the one hand, it can determine the volume value corresponding to the determined distance between the person and the device (referred to as the first volume value in this document), and on the other hand, it can determine the volume value corresponding to the collected ambient noise (referred to as the second volume value in this document). Furthermore, it can determine the target volume value for voice playback based on the first volume value and the second volume value.

[0097] For example, the target volume value can be determined by a weighted sum of the first volume value and the second volume value.

[0098] The weighting coefficients for the first and second volume values ​​can be set according to the actual scenario.

[0099] For example, the weighting coefficients for the first volume sum and the second volume sum can both be 1, meaning that the sum of the first volume and the second volume can be determined as the target volume value.

[0100] In some embodiments, the volume adjustment scheme provided in this application may further include:

[0101] If no person is detected within the preset distance range, the voice playback function will be turned off.

[0102] If a person is detected within a preset distance, the voice playback function will be activated.

[0103] For example, it is considered that when the distance between a person and the voice playback device is too large, the person may not be able to understand the voice information played by the voice playback device.

[0104] Accordingly, in order to reduce resource consumption, if the voice playback device determines that no person is identified within a preset distance range, for example, if the voice playback device determines that no person is within the preset distance range from the device, the voice playback device can turn off the voice playback function.

[0105] When the voice playback device identifies a person within a preset distance range, it can activate the voice playback function.

[0106] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, the technical solutions provided in the embodiments of this application are described below with reference to specific examples.

[0107] In this embodiment, a mobile robot (hereinafter referred to as a robot) is used as an example for the voice playback device. For example, the voice playback device can be an AGV or an AMR.

[0108] In this embodiment, the schematic diagram of the volume control system deployed on the robot can be as follows: Figure 2 As shown, it may include: a personnel recognition module, an initial volume adjustment module, a noise acquisition module, a data processing module, and a voice output module.

[0109] In this embodiment, taking a voice playback device equipped with two voice output modules as an example, in order to achieve accurate collection of environmental noise, the voice playback device is also equipped with two noise collection modules. The installation positions of the two noise collection modules are respectively matched with the installation positions of the two voice output modules, and are used to collect environmental noise for the corresponding voice output modules.

[0110] For example, such as Figure 3AAs shown, the voice output module may include H1 and H2, and the noise acquisition module may include G1 and G2. The installation position of G1 matches the installation position of H1 (for example, the distance between them is less than a preset distance threshold) and is used to acquire ambient noise for H1 (i.e., the ambient noise acquired by G1 can be used for volume adjustment of H1). The installation position of G2 matches the installation position of H2 and is used to acquire ambient noise for H2 (i.e., the ambient noise acquired by G2 can be used for volume adjustment of H2).

[0111] For example, the personnel identification module can use wireless positioning to identify personnel and determine the distance between the personnel and the robot (specifically, the distance between the personnel and the voice output module in this embodiment). Alternatively, the personnel identification module can use image processing or laser ranging to identify personnel and determine the distance between the personnel and the robot.

[0112] In this embodiment, during robot operation, the personnel recognition module identifies nearby personnel in real time and determines the distance between the personnel and the robot. When a personnel is within a certain distance range from the robot (i.e., entering the aforementioned preset distance range), the voice playback function is activated. On one hand, an initial adjustment volume value is calculated based on the distance between the personnel and the robot. On the other hand, the current ambient noise is collected, and then, based on the initial adjustment volume value and the ambient noise, the final adjustment volume value is determined.

[0113] For example, the voice playback function can be turned off when a person is more than a certain distance away from the robot.

[0114] The following sections respectively address... Figure 2 The functions of each module are explained.

[0115] 1. Personnel Identification Module

[0116] 1.1 Taking personnel identification and distance determination based on wireless positioning as an example.

[0117] like Figure 3B As shown, module J is a wireless device, such as a wireless AP.

[0118] Modules K1 and K2 are wireless terminals, such as WIFI modules. Module K1 is installed inside device E, and module K2 is worn by the user.

[0119] Modules K1 and K2 are on the same local area network. Device E (i.e., the robot mentioned above) can obtain the coordinate position of module K2 through module J. It can calculate the distance from module K1 to module K2 and the angle of module K2 relative to module K1 using its own coordinates. Then, using the distances L2 and L3 between module H1, module H2 and module K1 and the corresponding angles θ3 and θ4, the distances D1 and D2 between module H1 and module H2 and the personnel can be calculated respectively.

[0120] The angle between module K2 and module K1 can be the angle corresponding to the slope of the line connecting module K2 and module K1 in the robot coordinate system. θ3 and θ4 can be determined based on this angle, as well as the angle corresponding to the slope of the line connecting module F1 and module F2 in the robot coordinate system (which can be determined based on the installation parameters of module F1 and module F2).

[0121] 1.2. Taking the identification of people and distance determination based on vision-type or laser-type sensors as an example.

[0122] like Figure 3C and 3D As shown, modules F1 and F2 are vision-type or laser-type sensors with a detection angle of 270°. The installation positions of modules F1 and F2 are matched with the installation positions of modules H1 and H2, respectively, and are used to provide data support for the volume adjustment of modules H1 and H2.

[0123] The area within a preset distance around the robot can be divided into areas A to D. For areas A and B, module F1 can detect people in area A but not in area B, while module F2 can detect people in area B but not in area A. For areas C and D, both modules F1 and F2 can detect people in areas C and D.

[0124] For example, for people within region A, module F1 can directly obtain the distance between the person and module F1 (i.e., Figure 3C In the context of D1), device E can determine the distance between the personnel and module F2 (i.e., the distance L1 between modules F1 and F2, and the corresponding angle θ1) based on D1, L1, and θ1. Figure 3B (D2 in the middle).

[0125] Similarly, for people within region B, module F2 can directly obtain the distance between the people and module F2 (i.e., Figure 3B Based on D4, the distance L1 between modules F1 and F2, and the corresponding angle θ2, device E can determine the distance between the personnel and module F1 (i.e., ...). Figure 3B D3 in ).

[0126] The methods for determining angles θ1 and θ2 are similar to those for determining θ3 and θ4, and will not be repeated here in the embodiments of this application.

[0127] For example, such as Figure 3D As shown, for people in region C and people in region D, both module F1 and module F2 can directly obtain the distance of the people relative to their respective modules.

[0128] For example, taking any person in area C as an example, module F1 can directly detect the distance of the person relative to module F1, and module F1 can also directly detect the distance of the person relative to module F2.

[0129] 2. Initial volume control module

[0130] The initial volume adjustment value is determined based on the distance between the person and the robot.

[0131] For example, the initial volume adjustment value can be determined using the following formula:

[0132] S1 = 10 * ln(D) + 70;

[0133] Where D is the distance between the person and the robot, for example, with Figure 3B For example, for module H1, the distance D is either D1 or D3. For module H2, the distance D is either D2 or D4.

[0134] 3. Noise Acquisition Module

[0135] The current ambient noise is collected to adjust the volume of the voice output module.

[0136] For example, when there are multiple noise acquisition modules, the actual ambient noise can be determined based on the ambient noise collected by the multiple noise acquisition modules.

[0137] For example, taking the above embodiment with two noise acquisition modules (module G1 and module G2) as an example, the average value of the ambient noise collected by the two noise acquisition modules can be determined as the current ambient noise, that is:

[0138] Sn=(Sg1+Sg2) / 2

[0139] Wherein, Sg1 is the ambient noise collected by module G1, and Sg2 is the ambient noise collected by module G2.

[0140] 4. Data Processing Module

[0141] Based on the initial volume adjustment value determined by the initial volume adjustment module and the ambient noise, the final output volume of the voice output is determined.

[0142] For example, the final output volume can be determined in the following way:

[0143] S2 = S1 + Sn

[0144] Wherein, S2 is the final output volume, which is the weighted value of the initial volume adjustment value and the ambient noise (taking a weighting coefficient of 1 for both values ​​as an example).

[0145] For example, in the presence of multiple voice output modules (such as modules H1 and H2 mentioned above), it is necessary to determine the final output volume of each voice output module separately.

[0146] 5. Voice output module

[0147] Based on the final output volume determined by the data processing module, voice information is played.

[0148] For example, with Figure 3D Taking the scenario shown as an example where a person is in area C or area D, an example of adjusting the volume based on the distance between the person and the robot in area C or area D can be shown in Table 1:

[0149] Table 1

[0150]

[0151] As shown in Table 1, the distances between the personnel and modules F1 and F2 are different (5m and 4m respectively), and their initial volume adjustment values ​​are also different (86dB and 84dB respectively). After adjustment according to the ambient noise, the final output volumes of modules H1 and H2 are also different (126dB and 124dB respectively).

[0152] The method provided in this application has been described above. The apparatus provided in this application is described below:

[0153] Please see Figure 4 This is a schematic diagram of the structure of a volume adjustment device provided in an embodiment of this application, as shown below. Figure 4 As shown, the volume control device may include:

[0154] The first determining unit 410 is used to determine the distance between a person and the device within a preset distance range;

[0155] Noise acquisition unit 420 is used to collect ambient noise;

[0156] The second determining unit 430 is used to determine the target volume value of voice playback based on the distance between the person and the device, and the collected ambient noise.

[0157] The volume adjustment unit 440 is used to control the device to play voice at the target volume value.

[0158] In some embodiments, the voice playback device is equipped with a first wireless terminal;

[0159] The first determining unit 410 determines the distance between personnel and the device within a preset distance range, including:

[0160] Based on the coordinate positions of the personnel within the preset distance range and the coordinate positions of the first wireless terminal, the distance and angle of the personnel within the preset distance range relative to the first wireless terminal are determined; wherein, the coordinate positions of the personnel within the preset distance range are determined based on the positioning information of the second wireless terminal carried by the personnel;

[0161] Based on the distance and angle between the voice output module installed on this device and the first wireless terminal, and the distance and angle between the person within the preset distance range and the first wireless terminal, the distance between the person within the preset distance range and the voice output module is determined.

[0162] In some embodiments, the voice playback device is equipped with sensors for personnel identification and distance measurement;

[0163] The first determining unit 410 determines the distance between personnel and the device within a preset distance range, including:

[0164] The sensor determines the distance and angle of a person within a preset distance range relative to the sensor.

[0165] Based on the distance and angle between the voice output module installed in this device and the sensor, and the distance and angle between the person within the preset distance range and the sensor, the distance between the person within the preset distance range and the voice output module is determined.

[0166] In some embodiments, the voice playback device is equipped with two voice output modules and two sensors whose installation positions are respectively matched with the installation positions of the two voice output modules; the detection range of either of the two sensors is less than 360°, and the union of the detection ranges of the two sensors covers 360°.

[0167] The first determining unit 410 determines the distance between personnel and the device within a preset distance range, including:

[0168] For a person within the detection range of the first sensor but outside the detection range of the second sensor, the distance and angle of the person relative to the first sensor are detected by the first sensor, and this distance is determined as the distance between the person and the first voice output module. Furthermore, based on the distance and angle of the person relative to the first sensor and the distance and angle of the second sensor relative to the first sensor, the distance between the person within the preset distance range and the second voice output module is determined. The first voice output module is a voice output module whose installation position matches the installation position of the first sensor, and the second voice output module is a voice output module whose installation position matches the installation position of the second sensor.

[0169] For a person within the detection range of the first sensor and the detection range of the second sensor, the distance between the person and the first sensor is detected by the first sensor and determined as the distance between the person and the first voice output module; and the distance between the person and the second sensor is detected by the second sensor and determined as the distance between the person and the second voice output module.

[0170] In some embodiments, the voice playback device is equipped with at least one voice output module;

[0171] The distance between the person and the device includes the distance between the person and the voice output module installed on the device;

[0172] The second determining unit 430 determines the target volume value for voice playback based on the distance between the person and the device, and the collected ambient noise, including:

[0173] When there are multiple people within the preset distance range, for any voice output module, the target volume value for voice playback by the voice output module is determined based on the distance between the target person and the voice output module, and the collected ambient noise; wherein, the target person is the person who is closest to the voice output module among the multiple people.

[0174] In some embodiments, the second determining unit 430 determines the target volume value for voice playback based on the distance between the person and the device, and the collected ambient noise, including:

[0175] A first volume value is determined based on the distance between the person and the device; and a second volume value is determined based on the collected ambient noise.

[0176] Based on the first volume value and the second volume value, the target volume value for voice playback is determined.

[0177] In some embodiments, the volume adjustment unit 440 is further configured to turn off the voice playback function when no person is detected within a preset distance range, and to turn on the voice playback function when a person is detected within a preset distance range.

[0178] This application provides an electronic device including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the volume adjustment method described above.

[0179] Please see Figure 5This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device may include a processor 501 and a memory 502 storing machine-executable instructions. The processor 501 and the memory 502 can communicate via a system bus 503. Furthermore, by reading and executing the machine-executable instructions corresponding to the volume adjustment logic in the memory 502, the processor 501 can execute the volume adjustment method described above.

[0180] The memory 502 mentioned in this document can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For example, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.

[0181] In some embodiments, a machine-readable storage medium, such as Figure 5 The memory 502 in the machine-readable storage medium stores machine-executable instructions that, when executed by a processor, implement the volume adjustment method described above. For example, the machine-readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.

[0182] This application also provides a computer program stored in a machine-readable storage medium, such as... Figure 5 The memory 502 in the processor, and when the processor executes the computer program, it causes the processor 501 to execute the volume adjustment method described above.

[0183] It should be noted that, in this document, relational terms such as "objective" and "target" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, 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 a process, method, article, or apparatus. Without further limitations, 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 said element.

[0184] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A volume adjustment method applied to a voice playing device, characterized in that, The method comprises: determining the distance between a person within a preset distance range and the device; determining the target volume value of voice playing according to the distance between the person and the device and the collected environmental noise; controlling the device to play voice at the target volume value; wherein, in the case that the voice playing device is installed with a first wireless terminal, the determination of the distance between the person within the preset distance range and the device comprises: determining the distance and angle of the person within the preset distance range relative to the first wireless terminal according to the coordinate position of the person within the preset distance range and the coordinate position of the first wireless terminal; wherein the coordinate position of the person within the preset distance range is determined based on the positioning information of a second wireless terminal carried by the person; determining the distance between the person within the preset distance range and the voice output module according to the distance and angle of the voice output module installed on the device relative to the first wireless terminal and the distance and angle of the person within the preset distance range relative to the first wireless terminal; and / or in the case that the voice playing device is installed with a sensor for person identification and distance measurement, the determination of the distance between the person within the preset distance range and the device comprises: determining the distance and angle of the person within the preset distance range relative to the sensor through the sensor; determining the distance between the person within the preset distance range and the voice output module according to the distance and angle of the voice output module installed on the device relative to the sensor and the distance and angle of the person within the preset distance range relative to the sensor. in the case that the voice playing device is installed with a sensor for person identification and distance measurement, the voice playing device is installed with two voice output modules and two sensors with installation positions matching the installation positions of the two voice output modules respectively; the detection range of any one of the two sensors is less than 360°, and the union of the detection ranges of the two sensors covers 360°; 2. The method of claim 1, wherein, the determination of the distance between the person within the preset distance range and the device comprises: for the person within the detection range of the first sensor but not within the detection range of the second sensor, detecting the distance and angle of the person relative to the first sensor through the first sensor, determining the distance between the person and the first voice output module as the distance, and determining the distance between the person and the second voice output module according to the distance and angle of the person relative to the first sensor and the distance and angle of the second sensor relative to the first sensor; wherein the first voice output module is a voice output module with an installation position matching the installation position of the first sensor, and the second voice output module is a voice output module with an installation position matching the installation position of the second sensor. ​ For the person in the detection range of the first sensor and in the detection range of the second sensor, the distance of the person relative to the first sensor is detected by the first sensor, the distance is determined as the distance between the person and the first voice output module, the distance of the person relative to the second sensor is detected by the second sensor, and the distance is determined as the distance between the person and the second voice output module.

3. The method of claim 1, wherein, The voice playing device is provided with at least one voice output module; The distance between the person and the device includes the distance between the person and the voice output module installed on the device; The target volume value of voice playing is determined according to the distance between the person and the device and the collected environmental noise, which includes: For any voice output module, the target volume value of voice playing of the voice output module is determined according to the distance between the target person and the voice output module and the collected environmental noise; wherein the target person is the person in the preset distance range and closest to the voice output module.

4. The method of claim 1, wherein, The target volume value of voice playing is determined according to the distance between the person and the device and the collected environmental noise, which includes: A first volume value is determined according to the distance between the person and the device, and a second volume value is determined according to the collected environmental noise; The target volume value of voice playing is determined according to the first volume value and the second volume value.

5. The method of claim 1, wherein, The method further includes: In the case that no person is identified in the preset distance range, the voice playing function is turned off; In the case that a person is identified in the preset distance range, the voice playing function is turned on.

6. A volume adjusting apparatus disposed in a voice playing device, characterized by, The device includes: A first determination unit for determining the distance between the person in the preset distance range and the device; A noise collection unit for collecting environmental noise; A second determination unit for determining the target volume value of voice playing according to the distance between the person and the device and the collected environmental noise; A volume adjustment unit for controlling the device to play voice at the target volume value; In the case that the voice playing device is provided with a first wireless terminal; The first determination unit determines the distance between the person in the preset distance range and the device, which includes: The distance and angle of the person in the preset distance range relative to the first wireless terminal are determined according to the coordinate position of the person in the preset distance range and the coordinate position of the first wireless terminal; wherein the coordinate position of the person in the preset distance range is determined based on the positioning information of the second wireless terminal carried by the person; The distance between the person in the preset distance range and the voice output module installed on the device is determined according to the distance and angle of the voice output module relative to the first wireless terminal and the distance and angle of the person in the preset distance range relative to the first wireless terminal; And / or, In the case that the voice playing device is provided with sensors for person identification and distance measurement; The first determination unit determines the distance between the person in the preset distance range and the device, which includes: The sensor is configured to determine a distance and an angle of a person within a preset distance range relative to the sensor. The second determining unit is configured to determine a target volume value of voice playing according to the distance between the person and the device and the collected environmental noise.

7. The apparatus of claim 6, wherein, In the case that the voice playing device is provided with sensors for person identification and distance measurement, the voice playing device is provided with two voice output modules and two sensors with installation positions matched with the installation positions of the two voice output modules respectively; the detection range of any one of the two sensors is less than 360°, and the union of the detection ranges of the two sensors covers 360°. The first determining unit is configured to determine the distance between the person within the preset distance range and the device, including: For the person within the detection range of the first sensor but not within the detection range of the second sensor, the first sensor is configured to detect the distance and the angle of the person relative to the first sensor, determine the distance between the person and the first voice output module as the distance, and determine the distance between the person and the second voice output module according to the distance and the angle of the person relative to the first sensor and the distance and the angle of the second sensor relative to the first sensor; wherein the first voice output module is a voice output module with an installation position matched with the installation position of the first sensor, and the second voice output module is a voice output module with an installation position matched with the installation position of the second sensor. For the person within the detection range of the first sensor and within the detection range of the second sensor, the first sensor is configured to detect the distance of the person relative to the first sensor, determine the distance between the person and the first voice output module as the distance, and the second sensor is configured to detect the distance of the person relative to the second sensor, determine the distance between the person and the second voice output module as the distance. And / or, The voice playing device is provided with at least one voice output module. The distance between the person and the device includes the distance between the person and the voice output module installed on the device. The second determining unit is configured to determine the target volume value of voice playing according to the distance between the person and the device and the collected environmental noise, including: For any voice output module, the second determining unit is configured to determine the target volume value of voice playing of the voice output module according to the distance between the target person and the voice output module and the collected environmental noise; wherein the target person is the person within the preset distance range with the shortest distance to the voice output module. And / or, The second determining unit is configured to determine the target volume value of voice playing according to the distance between the person and the device and the collected environmental noise, including: determine a first volume value according to the distance between the person and the device; and determine a second volume value according to the collected environmental noise. determine a target volume value of voice playing according to the first volume value and the second volume value; and / or, the volume adjusting unit is further configured to turn off the voice playing function when no person is identified within a preset distance range, and turn on the voice playing function when a person is identified within the preset distance range.

8. An electronic device, comprising: A device comprising a processor and a memory storing machine executable instructions executable by the processor to perform the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Volume adjustment method and device, electronic equipment and storage medium

    CN113157246A