Volume Adjustment Method, Device, Smart Glasses and Storage Medium for Smart Glasses

By using detection components in smart glasses to detect the proximity of the target object and adjusting the volume according to the distance, the problem of audio data leakage and poor sound silence effect of smart glasses is solved, achieving higher safety and sound silence effect.

CN115190413BActive Publication Date: 2025-06-24GEER TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210614122.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-06-24
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

When smart glasses output audio data, they are prone to information leakage, and the existing acoustic structure has poor sound silencing effect, making it difficult to effectively improve the safety of smart glasses.

Method used

By setting detection components in the smart glasses, detecting whether the target object is close, adjusting the volume of the output audio based on the distance between the target object and the smart glasses, and achieving active silencing.

Benefits of technology

It effectively avoids the leakage of audio data, improves the sound silencing effect of smart glasses, and improves the safety of their use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115190413B_ABST
    Figure CN115190413B_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses a method and device for adjusting the volume of smart glasses, the smart glasses, and a storage medium. The method is applied to the smart glasses, which include a detection component for detecting whether a target object approaches the smart glasses. The method includes: when the smart glasses output a first audio, obtaining detection information output by the detection component; when the detection information indicates that the detected target object approaches the smart glasses, determining a first distance between the target object and the smart glasses according to the detection information; when the first distance is within a first predetermined range, determining a target volume corresponding to the first distance according to target mapping data, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio; and adjusting the current volume of the output first audio to the target volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of smart glasses. More specifically, embodiments of the present disclosure relate to a method and apparatus for adjusting the volume of a smart glass, a smart glass, and a storage medium. Background Art

[0002] With the development of smart glass technology, smart glasses can be used to output audio data. Smart glasses usually output audio data in an external speaker mode. For this audio output mode, the audio data output by smart glasses is easily heard by nearby users, resulting in information leakage and poor security of smart glasses.

[0003] In response to this, an acoustic structure, such as an acoustic dipole or a speaker array, can be provided in the smart glasses to perform far-field noise cancellation through the acoustic structure. However, the noise cancellation effect of this method is poor.

[0004] Therefore, it is necessary to provide a new solution for adjusting the volume of smart glasses, which can improve the noise cancellation effect of smart glasses. Summary of the Invention

[0005] The purpose of the embodiments of the present disclosure is to provide a method and apparatus for adjusting the volume of a smart glass, a smart glass, and a storage medium, which can improve the noise cancellation effect of smart glasses.

[0006] According to a first aspect of the embodiments of the present disclosure, there is provided a method for adjusting the volume of a smart glass, which is applied to a smart glass. The smart glass includes a detection component for detecting whether a target object is approaching the smart glass. The method includes:

[0007] When the smart glass outputs a first audio, obtaining detection information output by the detection component;

[0008] When the detection information indicates that the target object is approaching the smart glass, determining a first distance between the target object and the smart glass according to the detection information;

[0009] When the first distance is within a first predetermined range, determining a target volume corresponding to the first distance according to target mapping data, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glass and the volume of the first audio;

[0010] Adjusting the current volume of the output first audio to the target volume.

[0011] Optionally, the target mapping data includes first mapping data, and the first mapping data is data reflecting the correspondence between the distance between the target object and the smart glass and the volume of the first audio in a first mode;

[0012] Determining a target volume corresponding to a first distance according to target mapping data includes:

[0013] When the smart glasses are in a first mode, determining a target volume corresponding to the first distance according to the first mapping data.

[0014] Optionally, the target mapping data includes second mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of a first audio in a second mode;

[0015] Determining a target volume corresponding to a first distance according to target mapping data includes:

[0016] When the smart glasses are in a second mode, determining a target volume corresponding to the first distance according to the second mapping data.

[0017] Optionally, after determining the first distance between the target object and the smart glasses according to the detection information, the method further includes:

[0018] When the first distance is outside a first predetermined range and the first distance is less than a first threshold, suspending the output of the first audio.

[0019] Optionally, when the detection component is an infrared sensor or a camera, when the detection information indicates that a target object is approaching the smart glasses, determining the first distance between the target object and the smart glasses according to the detection information includes:

[0020] When the detection information indicates that a target object is approaching the smart glasses and the target object is a human body, determining the first distance between the target object and the smart glasses according to the detection information.

[0021] Optionally, when the detection component is an infrared sensor, the detection information includes an echo signal reflected by the target object received by the infrared sensor. When the detection information indicates that a target object is approaching the smart glasses, before determining the first distance between the target object and the smart glasses according to the detection information, the method further includes:

[0022] Determining the reflectivity of the target object according to the echo signal;

[0023] When the reflectivity of the target object is within a second predetermined range, determining that the target object is a human body.

[0024] Optionally, when the detection component is a camera, the detection information includes a first image of the target object. When the detection information indicates that a target object is approaching the smart glasses, before determining the first distance between the target object and the smart glasses according to the detection information, the method further includes:

[0025] Identify the first image to obtain the feature information of the target object;

[0026] Determine whether the target object is a human body according to the feature information of the target object.

[0027] According to the second aspect of the embodiments of the present disclosure, there is provided a volume adjustment device for smart glasses, which is applied to smart glasses. The smart glasses include a detection component for detecting whether a target object approaches the smart glasses. The device includes:

[0028] An acquisition module, configured to acquire the detection information output by the detection component when the smart glasses output a first audio;

[0029] A first determination module, configured to determine a first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the detected target object approaches the smart glasses;

[0030] A second determination module, configured to determine a target volume corresponding to the first distance according to the target mapping data when the first distance is within a first predetermined range, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio;

[0031] An adjustment module, configured to adjust the current volume of the output first audio to the target volume.

[0032] According to the third aspect of the embodiments of the present disclosure, there is provided a pair of smart glasses, including:

[0033] A frame;

[0034] Temples, one end of the temples is connected to the frame;

[0035] A speaker, the speaker is arranged on the temple;

[0036] A detection component, which is located on the temple and is arranged close to the speaker. The detection component is configured to detect whether a target object approaches the smart glasses and acquire the distance between the target object and the smart glasses;

[0037] A processor, the processor is connected to the detection component, and is configured to acquire the detection information output by the detection component when the speaker outputs a first audio, and adjust the volume of the first audio output by the speaker according to the distance between the target object and the smart glasses when the detection information indicates that the detected target object approaches.

[0038] Optionally, the detection component includes at least one of a distance sensor and a camera;

[0039] Wherein, the distance sensor is an infrared sensor, a laser sensor, an ultrasonic sensor, or a millimeter wave sensor.

[0040] Optionally, when the detection component is an infrared sensor or a camera, the detection component is further configured to detect whether the target object is a human body;

[0041] Specifically, when the detection information indicates that the target object is detected to be approaching and the target object is a human body, the processor is configured to adjust the volume of the first audio output by the speaker according to the distance between the target object and the smart glasses.

[0042] According to a fourth aspect of the embodiments of the present disclosure, there is provided a pair of smart glasses, including a detection component, and the smart glasses further include:

[0043] A memory, configured to store executable computer instructions;

[0044] A processor, configured to execute the volume adjustment method of the smart glasses according to the first aspect of the embodiments of the present disclosure under the control of the executable computer instructions.

[0045] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run by a processor, they execute the volume adjustment method of the smart glasses according to the first aspect of the embodiments of the present disclosure;

[0046] Wherein, the detection component is connected to the processor to output the acquired detection information to the processor, and the detection information is used to indicate whether the target object is approaching the smart glasses.

[0047] According to the embodiments of the present disclosure, when the smart glasses output the first audio, the detection information output by the detection component is used to detect whether the target object is approaching the smart glasses, and when it is detected that the target object is approaching the smart glasses, the first distance between the target object and the smart glasses is obtained, so that when the first distance is within a first predetermined range, the volume of the first audio output by the smart glasses is adjusted according to the first distance and the target mapping data. In this way, compared with the prior art in which passive noise cancellation is achieved through an acoustic structure, in this embodiment, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a better noise cancellation effect, and can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0048] Through the following detailed description of the exemplary embodiments of the present disclosure with reference to the accompanying drawings, other features and advantages of the embodiments of the present disclosure will become clear. Description of the Drawings

[0049] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can be obtained based on these drawings.

[0050] Figure 1 is a schematic structural diagram of a smart glasses according to an embodiment;

[0051] Figure 2 is a schematic flowchart of a volume adjustment method for a smart glasses according to an embodiment;

[0052] Figure 3 is a relationship curve between the distance and volume between a target object and smart glasses in a first mode according to an embodiment;

[0053] Figure 4 is a relationship curve between the distance and volume between a target object and smart glasses in a second mode according to an embodiment;

[0054] Figure 5 is a schematic flowchart of a volume adjustment method for a smart glasses according to an example;

[0055] Figure 6 is a schematic hardware structure diagram of a volume adjustment device for a smart glasses according to an embodiment;

[0056] Figure 7 is a schematic hardware structure diagram of a smart glasses according to an embodiment. Detailed implementation manners

[0057] Now, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that: unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions, and values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.

[0058] The following description of at least one exemplary embodiment is merely illustrative and in no way restrictive of the present disclosure, its application, or use.

[0059] Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods, and devices should be regarded as part of the specification.

[0060] In all the examples shown and discussed here, any specific values should be construed as merely exemplary and not as limitations. Therefore, other examples of the exemplary embodiments may have different values.

[0061] It should be noted that like reference numerals and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0062] Currently, smart glasses usually output audio data in an external speaker mode. For this audio output mode, the audio data output by the smart glasses is easily heard by nearby users, resulting in information leakage and poor security of the smart glasses.

[0063] In one embodiment, an acoustic dipole can be provided on the smart glasses. By using the principle that the sound waves emitted from two sound holes coincide and cancel each other out, noise cancellation of the smart glasses can be achieved. However, this passive noise cancellation method has a poor noise cancellation effect on medium and high frequency audio signals.

[0064] In one embodiment, a speaker array can be provided on the smart glasses. By using the beamforming principle, noise cancellation of the smart glasses can be achieved. However, the sound signal processed by this passive noise cancellation method has a stronger directivity and a poor noise cancellation effect.

[0065] To solve the above technical problems, an embodiment of the present application provides a method for adjusting the volume of a smart glasses. When it is detected that a target object approaches the smart glasses, the volume of the audio output by the smart glasses is adjusted according to the distance between the target object and the smart glasses. In this way, when it is detected that the target object approaches, the volume of the output audio can be actively adjusted, which can avoid the leakage of audio data and thus improve the noise cancellation effect of the smart glasses.

[0066] The following will, with reference to the figures, describe in detail the volume adjustment solution provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0067] An embodiment of the present disclosure provides a method for adjusting the volume of a smart glasses. The method for adjusting the volume of the smart glasses is implemented by the smart glasses. First, the smart glasses for implementing the volume adjustment method will be introduced below.

[0068] Please refer to Figure 1 , the smart glasses 10 includes a frame 11, temple arms 12, a speaker 13, a detection component 14, and a processor; one end of the temple arm 12 is connected to the frame 11; the speaker 13 is provided on the temple arm 12; the detection component 14 is located on the temple arm 12 and is provided close to the speaker 13. The detection component 14 is configured to detect whether a target object approaches the smart glasses and obtain the distance between the target object and the smart glasses; the processor is connected to the detection component 14 and is configured to, when the speaker 13 outputs a first audio, obtain the detection information output by the detection component 14, and when the detection information indicates that the target object is detected to approach, adjust the volume of the first audio output by the speaker according to the distance between the target object and the smart glasses.

[0069] In this embodiment, the smart glasses can be provided with two speakers. Accordingly, the smart glasses can be provided with two detection components. Exemplarily, as Figure 1 shown, the smart glasses 10 include a frame 11 and two temple arms 12. A speaker 13 and a detection component 14 are provided on each temple arm 12, and the detection component 14 is disposed close to the speaker 13 on the same temple arm 12. In this embodiment, the two detection components 14 are provided in one-to-one correspondence with the two speakers 13. One detection component 14 is used to detect whether a target object approaches one side of the smart glasses 10, that is, to detect whether the target object approaches the side where the detection component 14 and the corresponding speaker 13 are located. During the use of the smart glasses, the detection component 14 provided near the speaker can detect whether the target object approaches one side of the smart glasses. In the case where it is detected that the target object approaches one side of the smart glasses, the volume of the audio output by the speaker on that side is adjusted according to the distance between the target object and the smart glasses, and at the same time, the speaker on the other side is controlled to output the audio at the previous volume. In this way, the leakage of the audio output by the smart glasses can be avoided, effectively protecting the privacy of the wearer of the smart glasses. At the same time, keeping the speaker on the other side outputting audio normally can ensure that the user has a better audio experience and a better user experience.

[0070] In this embodiment, the detection component 14 is used to detect whether the target object approaches the smart glasses when the speaker outputs the first audio, and to obtain the distance between the target object and the smart glasses in the case where it is detected that the target object approaches the smart glasses. Among them, when the smart glasses are in the call mode, the first audio can be call data. When the smart glasses are in the audio playback mode, the first audio can be the audio data to be played. The target object can be an object. The target object can also be a human body, that is, another user approaching the smart glasses.

[0071] Optionally, the detection component may include a distance sensor and / or a camera. That is to say, the detection component can be a distance sensor and a camera. The detection component can also include a distance sensor and a camera. The distance sensor can be, for example, an infrared sensor, a laser sensor, an ultrasonic sensor, or a millimeter wave sensor. The camera can be, for example, an ordinary camera, a depth camera, or a wide-angle camera. It can be understood here that those skilled in the art can set the detection component according to actual needs, and the embodiments of the present disclosure do not limit this.

[0072] The working principles of different types of detection components will be described below.

[0073] Taking a distance sensor as an example, the distance sensor includes a transmitting unit and a receiving unit. The transmitting unit emits acoustic wave signals outward, and the receiving unit receives the echo signals after reflection. When the signal intensity of the echo signal is greater than or equal to the intensity threshold, it is determined that a target object is detected approaching the smart glasses. Further, according to the time difference between the acoustic wave signals emitted by the transmitting unit and the echo signals received by the receiving unit, and the propagation speed of the acoustic waves, the distance between the target object and the smart glasses is determined.

[0074] Taking the setting of two cameras as an example, two first images collected by the two cameras are obtained. When human features are recognized in the first images, the distance between the target object and the smart glasses is determined according to the two first images. Among them, the human features can be, for example, facial features, mouth features, eye features, etc.

[0075] In this embodiment, by setting a distance sensor or a camera, it is possible to accurately detect whether a target object is approaching the smart glasses, and accurately measure the distance between the target object and the smart glasses. Thus, when the target object approaches the smart glasses, the volume of the audio output by the speaker of the smart glasses is adjusted to avoid audio data leakage, and a good sound suppression effect is achieved.

[0076] In one embodiment, when the detection component is an infrared sensor or a camera, the detection component is further used to detect whether the target object is a human body; the processor is specifically used to, when the detection information indicates that the target object is detected approaching and the target object is a human body, adjust the volume of the first audio output by the speaker according to the distance between the target object and the smart glasses.

[0077] Taking an infrared sensor as an example, the infrared sensor includes an infrared transmitting unit and an infrared receiving unit. During the use of the smart glasses, the infrared transmitting unit emits infrared signals, and the infrared receiving unit receives the echo signals after being emitted by the target object; according to the signal intensity of the echo signals, the reflectivity of the target object can be determined. When the reflectivity of the target object is within a second predetermined range, it is determined that the target object is a human body. Among them, the water content of the target object is different, and the reflectivity of the obtained echo signals is different. Based on this, the range of the reflectivity of the echo signals, that is, the second predetermined range, can be set according to the water content of the human body to determine whether the target object is a human body according to the second preset range.

[0078] Taking a camera as an example, during the use of the smart glasses, the first image collected by the camera is obtained, and the first image is recognized. When human features are recognized, it is determined that the target object is a human body. Among them, the human features can be, for example, facial features, mouth features, eye features, etc.

[0079] In this embodiment, when the detection component is an infrared sensor or a camera, when it is detected that a target object approaches the smart glasses, it is further possible to detect whether the target object is a human body. When the target object is a human body, the volume of the audio output by the smart glasses can be adjusted according to the distance between the target object and the smart glasses, which can improve the accuracy of volume adjustment and thus improve the noise cancellation effect of the smart glasses.

[0080] In one embodiment, the smart glasses further include an acoustic dipole. In this way, by setting the acoustic dipole, far-field noise cancellation can be performed during the process of the smart glasses playing audio. Further, according to the detection result of the detection component, the volume of the audio output by the smart glasses is adjusted, which can further improve the noise cancellation effect and avoid the leakage of audio data.

[0081] In one embodiment, the speaker of the smart glasses is a speaker array. In this way, by setting the speaker array, far-field noise cancellation can be performed during the process of the smart glasses playing audio. Further, according to the detection result of the detection component, the volume of the audio output by the smart glasses is adjusted, which can further improve the noise cancellation effect and avoid the leakage of audio data.

[0082] According to an embodiment of the present disclosure, when the smart glasses output the first audio, the detection information output by the detection component is used to detect whether a target object approaches the smart glasses, and when it is detected that the target object approaches the smart glasses, the first distance between the target object and the smart glasses is obtained, so that when the first distance is within the first predetermined range, the volume of the first audio output by the smart glasses is adjusted according to the first distance and the target mapping data. In this way, compared with the passive noise cancellation method through the acoustic structure in the prior art, in this embodiment, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a good noise cancellation effect, and can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0083] Figure 2 The flowchart of the volume adjustment method of the smart glasses according to an embodiment of the present disclosure is shown. The volume adjustment method of the smart glasses is applied to the smart glasses in the above embodiment. The smart glasses include a detection component for detecting whether a target object approaches the smart glasses.

[0084] As Figure 2 shown, the volume adjustment method of the smart glasses provided in this embodiment may include the following steps S2100 to step S2400.

[0085] Step S2100, when the smart glasses output the first audio, obtain the detection information output by the detection component.

[0086] The first audio can be audio data output through the speaker of the smart glasses. When the smart glasses are in the call mode, the first audio can be call data. When the smart glasses are in the audio playback mode, the first audio can be the audio data to be played.

[0087] The detection information may include information for indicating whether the target object is close to the smart glasses. The smart glasses include two detection components, and the two detection components are arranged in one-to-one correspondence with the speakers located on the two temple arms. In this case, the target object being close to the smart glasses may mean the target object is close to one side of the smart glasses.

[0088] Step S2200, when the detection information indicates that the target object is detected to be close to the smart glasses, determine a first distance between the target object and the smart glasses according to the detection information.

[0089] The following uses a specific embodiment to illustrate the process of obtaining the first distance.

[0090] Taking the detection component as a distance sensor as an example, the distance sensor includes a transmitting unit and a receiving unit, and the detection information further includes the sound wave signal emitted by the transmitting unit and the echo signal received by the receiving unit; determining the first distance between the target object and the smart glasses according to the detection information may further include: determining the time difference between the transmitting unit emitting the sound wave signal and the receiving unit receiving the echo signal, and determining the first distance between the target object and the smart glasses according to the time difference and the propagation speed of the sound wave.

[0091] Taking the detection component as two cameras as an example, the detection information further includes two first images collected by the two cameras, where the first images include the target object. Determining the first distance between the target object and the smart glasses according to the detection information may further include: determining the distance between the target object and the smart glasses according to the two first images collected by the two cameras.

[0092] In one embodiment, before determining the first distance between the target object and the smart glasses according to the detection information, the method further includes: determining whether the target object is close to the smart glasses according to the detection information.

[0093] Taking the detection component as a distance sensor as an example, the distance sensor includes a transmitting unit and a receiving unit, and the detection information further includes the sound wave signal emitted by the transmitting unit and the echo signal received by the receiving unit; obtain the signal intensity of the echo signal received by the receiving unit, and when the signal intensity is greater than or equal to the intensity threshold, determine that the target object is detected to be close to the smart glasses. Among them, the distance sensor may be, for example, an infrared sensor, a laser sensor, a ultrasonic sensor, or a millimeter wave sensor.

[0094] In one embodiment, when the detection component is an infrared sensor or a camera, and when the detection information indicates that a target object is approaching the smart glasses, according to the detection information, determining a first distance between the target object and the smart glasses includes: when the detection information indicates that a target object is approaching the smart glasses and the target object is a human body, according to the detection information, determining a first distance between the target object and the smart glasses.

[0095] In this embodiment, when it is detected that a target object is approaching the smart glasses, it is possible to further determine whether the target object is a human body, so that when the target object is a human body, the volume of the audio output by the smart glasses can be adjusted according to the distance between the target object and the smart glasses. In this way, the accuracy of volume control can be improved, and the audio experience of the user can be avoided from being affected.

[0096] The processes of using the infrared sensor and the camera to detect whether the target object is a human body are described below respectively.

[0097] In an alternative embodiment, when the detection component is an infrared sensor, the detection information includes an echo signal reflected by the target object received by the infrared sensor. Before determining the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the target object is approaching the smart glasses, the method further includes: step S3100 - step S3200.

[0098] Step S3100, determining the reflectivity of the target object according to the echo signal.

[0099] Step S3200, when the reflectivity of the target object is within a second predetermined range, determining that the target object is a human body.

[0100] In this embodiment, due to different water contents of the target object, the reflectivities of the obtained echo signals are different. Based on this, the range of the reflectivity of the echo signal, that is, the second predetermined range, can be set according to the water content of the human body. When the reflectivity of the target object is within the second preset range, it is determined that the target object is a human body.

[0101] In this embodiment, through the infrared sensor, it is possible to detect whether the target object is a human body, so that when the target object is a human body, the volume of the audio output by the smart glasses can be adjusted according to the distance between the target object and the smart glasses. In this way, the algorithm is simple and the response speed is relatively fast.

[0102] In another alternative embodiment, when the detection component is a camera, the detection information includes a first image of the target object. Before determining the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the target object is approaching the smart glasses, the method further includes: step S4100 - step S4200.

[0103] Step S4100: Identify the first image to obtain the feature information of the target object.

[0104] Step S4200: Determine whether the target object is a human body according to the feature information of the target object.

[0105] The first image can be an image captured by a camera and containing the target object. In a specific implementation, identify the first image to obtain the feature information of the target object. When the feature information of the target object includes human body feature information, determine that the target object is a human body. Among them, the human body feature information can include, for example, facial features, mouth features, eye features, etc.

[0106] In this embodiment, through the camera, it can be detected whether the target object is a human body. When the target object is a human body, the volume of the audio output by the smart glasses is adjusted according to the distance between the target object and the smart glasses. In this way, the accuracy of volume control can be improved, and the audio experience of the user can be avoided from being affected.

[0107] After step S2200, execute step S2300. When the first distance is within the first predetermined range, determine the target volume corresponding to the first distance according to the target mapping data, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio.

[0108] In this embodiment, the first predetermined distance can measure whether the target object is relatively close to the smart glasses, that is, relatively close to the wearer of the smart glasses. The first predetermined distance can be, for example, 30 cm to 100 cm, for example, it can also be 60 cm to 100 cm, and for example, it can also be 0 cm to 100 cm. It can be understood here that the first predetermined distance can be set according to actual needs, and the embodiments of the present disclosure do not limit this.

[0109] The target mapping data can be data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the output first audio. Among them, one distance can correspond to one volume, or one distance range can correspond to one volume. In a specific implementation, according to the first distance, the target volume corresponding to the first distance can be found in the target mapping data. Among them, the target volume is less than the current volume of the first audio output by the smart glasses.

[0110] In this embodiment, when the first distance between the target object and the smart glasses is within the first predetermined range, it indicates that the target object is relatively close to the smart glasses, and the audio data output by the smart glasses can be eavesdropped. At this time, according to the target mapping data, the target volume corresponding to the first distance is determined to adjust the volume of the output first audio to the target volume. In this way, the audio data output by the smart glasses can be prevented from being heard by other users, effectively protecting the privacy of the wearer of the smart glasses.

[0111] In this embodiment, determining the target volume corresponding to the first distance according to the target mapping data may include: determining the target volume corresponding to the first distance according to the working mode of the smart glasses and the target mapping data.

[0112] The working modes of the smart glasses include a first mode and a second mode. The first mode is the call mode. The second mode is the audio playback mode. Generally, when the smart glasses are in the call mode, there are higher requirements for the privacy of the smart glasses. Based on this, different mapping data can be set according to the working mode of the smart glasses to adjust the volume of the output first audio according to the corresponding mapping data.

[0113] The following will be described by specific embodiments.

[0114] In an alternative embodiment, the target mapping data includes first mapping data, and the first mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the first mode; determining the target volume corresponding to the first distance according to the target mapping data may include: when the smart glasses are in the first mode, determining the target volume corresponding to the first distance according to the first mapping data.

[0115] In this embodiment, the first mode may be the call mode. When the smart glasses are in the first mode, the first audio may be call data. The first mapping data may be data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the first mode. Exemplarily, as Figure 3 shown, the first mapping data may be a relationship curve between the distance between the target object and the smart glasses and the volume of the first audio.

[0116] In specific implementation, when the smart glasses are in the call mode, it is detected whether the target object is approaching the smart glasses; in the case where it is detected that the target object is approaching the smart glasses, the first distance between the target object and the smart glasses is obtained; in the case where the first distance is within the first predetermined range, according to Figure 3 the relationship curve between the distance between the target object and the smart glasses and the volume of the first audio shown, the target volume corresponding to the first distance is determined, and the volume of the output first audio is adjusted to the target volume. For example, as Figure 3As shown, the current volume of the first audio is 80 dB. When it is detected that the target object is at a first distance of 100 cm from the smart glasses, the volume of the first audio is controlled to decrease to 50 dB; when it is detected that the target object is at a first distance of 92 cm from the smart glasses, the volume of the first audio is controlled to decrease to 40 dB. When the first distance is not within the first predetermined range and is greater than the upper limit value of the first predetermined range, the first audio is controlled to maintain the current volume output. For example, the current volume of the first audio is controlled to be 80 dB.

[0117] In this embodiment, according to the working mode of the smart glasses, a variety of mapping data is provided, which is convenient for the user to adjust the volume of the first audio output by the smart glasses in different ways according to the working mode of the smart glasses. When the smart glasses are in the call mode, according to the first mapping data, the target volume corresponding to the first distance is determined to adjust the volume of the first audio output by the smart glasses to the target volume. In this way, when the smart glasses are in the call mode and it is detected that the target object approaches the smart glasses, the volume of the output first audio can be automatically lowered to prevent the communication data of the wearer of the smart glasses from being eavesdropped, further improving the security of using the smart glasses.

[0118] In another optional embodiment, the target mapping data includes second mapping data, and the second mapping data is data reflecting the corresponding relationship between the distance between the target object and the smart glasses and the volume of the first audio in the second mode; according to the target mapping data, determining the target volume corresponding to the first distance may include: when the smart glasses are in the second mode, determining the target volume corresponding to the first distance according to the second mapping data.

[0119] In this embodiment, the second mode may be the audio playback mode. When the smart glasses are in the second mode, the first audio may be the audio data to be played. The second mapping data may be data reflecting the corresponding relationship between the distance between the target object and the smart glasses and the volume of the first audio in the second mode. Exemplarily, as Figure 4 shown, the second mapping data may be a relationship curve between the distance between the target object and the smart glasses and the volume of the first audio. Among them, compared with the relationship curve in the Figure 3 shown first mode, in the second mode, the slope of the relationship curve between the distance between the target object and the smart glasses and the volume of the first audio is smaller. That is to say, compared with the first mode, in the second mode, the amplitude of the volume decrease is smaller.

[0120] In specific implementation, when the smart glasses are in the audio playback mode, it is detected whether the target object approaches the smart glasses; when it is detected that the target object approaches the smart glasses, the first distance between the target object and the smart glasses is obtained; when the first distance is less than or equal to the second threshold, according to Figure 4The relationship curve between the distance between the shown target object and the smart glasses and the volume of the first audio is determined, the target volume corresponding to the first distance is determined, and the volume of the output first audio is adjusted to the target volume. Among them, the second threshold can be 100 cm, for example. For example, as Figure 4 shown, the current volume of the first audio is 80 dB. When it is detected that the first distance between the target object and the smart glasses is 100 cm, the volume of the first audio is controlled to be reduced to 50 dB; when it is detected that the first distance between the target object and the smart glasses is 80 cm, the volume of the first audio is controlled to be reduced to 40 dB. When the first distance is 0 cm, the playback of the first audio is paused. When the first distance is not within the first predetermined range and is greater than the upper limit value of the first predetermined range, the first audio is controlled to maintain the current volume output. For example, the current volume of the first audio is controlled to be 80 dB.

[0121] In this embodiment, according to the working mode of the smart glasses, a variety of mapping data is provided, which is convenient for users to adjust the volume of the first audio output by the smart glasses in different ways according to the working mode of the smart glasses. When the smart glasses are in the audio playback mode, according to the second mapping data, the target volume corresponding to the first distance is determined to adjust the volume of the first audio output by the smart glasses to the target volume. In this way, when the smart glasses are in the audio playback mode and it is detected that the target object approaches the smart glasses, the volume of the output first audio can be automatically lowered, which can avoid the first audio output by the smart glasses from interfering with surrounding users and the user experience is better.

[0122] After step 2300, step S2400 is executed to adjust the current volume of the output first audio to the target volume.

[0123] The target volume is lower than the current volume of the first audio.

[0124] In one embodiment, after determining the first distance between the target object and the smart glasses according to the detection information, the method may further include: when the first distance is outside the first predetermined range and the first distance is less than the first threshold, the output of the first audio is paused.

[0125] The first threshold may be the lower limit value of the first predetermined range. For example, the first predetermined range is 30 cm to 100 cm, and the first threshold is 30 cm.

[0126] When the first distance between the target object and the smart glasses is less than the first threshold, it means that the target object is very close to the smart glasses. At this time, the playback of the first audio can be directly paused to prevent the audio data output by the smart glasses from being eavesdropped, further improving the security of using the smart glasses.

[0127] According to an embodiment of the present disclosure, when the smart glasses output the first audio, the detection information output by the detection component is used to detect whether the target object is approaching the smart glasses, and when it is detected that the target object is approaching the smart glasses, the first distance between the target object and the smart glasses is obtained, so that when the first distance is within the first predetermined range, the volume of the first audio output by the smart glasses is adjusted according to the first distance and the target mapping data. In this way, compared with the passive noise cancellation method through the acoustic structure in the prior art, in this embodiment, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a better noise cancellation effect, and can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0128] As Figure 5 shown below, a specific example is used to illustrate the volume adjustment method of the smart glasses.

[0129] Step S501, when the smart glasses output the first audio, obtain the detection information output by the detection component;

[0130] Step S502, when the detection information indicates that the target object is detected to be approaching the smart glasses, determine the first distance between the target object and the smart glasses according to the detection information;

[0131] Step S503, determine whether the first distance between the target object and the smart glasses is less than or equal to the second threshold (100 cm). If so, execute Step S504; otherwise, execute Step S509.

[0132] Step S504, determine whether the working mode of the smart glasses is the first mode (call mode). If so, execute Step S505; otherwise, execute Step S508;

[0133] Step S505, determine whether the first distance between the target object and the smart glasses is within the first predetermined range (30 cm - 100 cm). If so, execute Step S506; otherwise, return to Step S507;

[0134] Step S506, adjust the volume of the output first audio to the target volume corresponding to the first distance according to the first mapping data;

[0135] Step S507, pause playing the first audio;

[0136] Step S508, adjust the volume of the output first audio to the target volume corresponding to the first distance according to the second mapping data;

[0137] Step S509, maintain the current volume.

[0138] In this example, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a good sound cancellation effect. Moreover, it can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0139] In addition, the smart glasses may include two temple arms, and each temple arm is provided with a speaker and a detection component. One detection component is used to detect whether a target object approaches one side of the smart glasses, that is, to detect whether a target object approaches the side where the detection component and the corresponding speaker are located. During the use of the smart glasses, the detection component arranged near the speaker can detect whether a target object approaches one side of the smart glasses. In the case where it is detected that the target object approaches one side of the smart glasses, the volume of the audio output by the speaker on that side is adjusted according to the distance between the target object and the smart glasses, and at the same time, the speaker on the other side is controlled to output audio at the previous volume. In this way, the leakage of the audio output by the smart glasses can be avoided, effectively protecting the privacy of the wearer of the smart glasses. At the same time, keeping the speaker on the other side outputting audio normally can ensure that the user has a better audio experience and a better user experience.

[0140] An embodiment of the present disclosure provides a volume adjustment device for smart glasses, which is applied to smart glasses. The smart glasses include a detection component, and the detection component is used to detect whether a target object approaches the smart glasses. As Figure 6 shown, the volume adjustment device 600 of the smart glasses may include an acquisition module 610, a first determination module 620, a second determination module 630, and an adjustment module 640.

[0141] The acquisition module 610 may be used to acquire the detection information output by the detection component when the smart glasses output the first audio.

[0142] The first determination module 620 may be used to determine a first distance between the target object and the smart glasses according to the detection information in the case where the detection information indicates that the target object is detected to approach the smart glasses.

[0143] The second determination module 630 may be used to determine a target volume corresponding to the first distance according to the target mapping data in the case where the first distance is within a first predetermined range, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio.

[0144] The adjustment module 640 may be used to adjust the current volume of the output first audio to the target volume.

[0145] In one embodiment, the target mapping data includes first mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the first mode; the second determination module 630 is specifically configured to determine the target volume corresponding to the first distance according to the first mapping data when the smart glasses are in the first mode.

[0146] In one embodiment, the target mapping data includes second mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the second mode; the second determination module 630 is specifically configured to determine the target volume corresponding to the first distance according to the second mapping data when the smart glasses are in the second mode.

[0147] In one embodiment, the volume adjustment device 600 of the smart glasses further includes:

[0148] A pause module, configured to pause the output of the first audio when the first distance is outside a first predetermined range and the first distance is less than a first threshold.

[0149] In one embodiment, when the detection component is an infrared sensor or a camera, the first determination module 620 is specifically configured to determine the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that a target object is detected approaching the smart glasses and the target object is a human body.

[0150] In one embodiment, when the detection component is an infrared sensor, the detection information includes an echo signal received by the infrared sensor and reflected by the target object, and the volume adjustment device 600 of the smart glasses further includes:

[0151] A third determination module, configured to determine the reflectivity of the target object according to the echo signal;

[0152] A fourth determination module, configured to determine that the target object is a human body when the reflectivity of the target object is within a second predetermined range.

[0153] In one embodiment, when the detection component is a camera, the detection information includes a first image of the target object, and the volume adjustment device 600 of the smart glasses further includes:

[0154] An identification module, configured to identify the first image to obtain the feature information of the target object;

[0155] A fifth determination module, configured to determine whether the target object is a human body according to the feature information of the target object.

[0156] According to an embodiment of the present disclosure, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a good sound cancellation effect, and can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0157] Figure 7 FIG. 4 is a schematic diagram of the hardware structure of a smart glasses according to an embodiment. As Figure 7 shown, the smart glasses 700 includes a memory 710, a processor 720, and a detection component 730.

[0158] The memory 710 can be used to store executable computer instructions.

[0159] The processor 720 can be used to execute the volume adjustment method of the smart glasses according to the embodiments of the methods of the present disclosure under the control of the executable computer instructions.

[0160] The detection component 730, which is connected to the processor to output the acquired detection information to the processor, where the detection information is used to indicate whether the target object is approaching the smart glasses.

[0161] In another embodiment, the smart glasses 700 may include the above-mentioned volume adjustment device 600 of the smart glasses.

[0162] In one embodiment, each module of the above-mentioned volume adjustment device 600 of the smart glasses can be implemented by the processor 720 running the computer instructions stored in the memory 710.

[0163] According to an embodiment of the present disclosure, when the smart glasses output audio, the volume of the audio output by the smart glasses can be actively adjusted according to the distance between the target object around the smart glasses and the smart glasses, which has a good sound cancellation effect, and can prevent the audio output by the smart glasses from being eavesdropped, thereby improving the security of using the smart glasses.

[0164] <Computer-readable storage medium>

[0165] Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run by a processor, they execute the volume adjustment method of the smart glasses provided by the embodiments of the present disclosure.

[0166] Embodiments of the present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium, on which computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure are loaded.

[0167] A computer-readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punched card or raised structures in grooves having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed as being a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0168] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0169] The computer program instructions for performing the operations of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the embodiments of the present disclosure.

[0170] Aspects of the embodiments of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0171] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is produced that implements the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, the programmable data processing device, and / or other devices to work in a specific manner. Thus, the computer-readable medium storing the instructions includes a manufactured article that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0172] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to generate a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0173] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.

[0174] The embodiments of the present disclosure have been described above. The above description is exemplary and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art in the technical field without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the market, or to enable other ordinary skilled persons in the technical field to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.

Claims

1. A method for adjusting the volume of a smart glasses, which is applied to the smart glasses, characterized in that, The smart glasses include a frame and two temple arms, with one end of each temple arm connected to the frame; a speaker and a detection component are provided on each temple arm, and the detection component is arranged close to the speaker on the same temple arm. The detection component is used to detect whether a target object approaches one side of the smart glasses, so as to, when it is detected that the target object approaches the one side of the smart glasses, adjust the volume of the audio output by the speaker on the one side according to the distance between the target object and the smart glasses, and at the same time control the speaker on the other side to output audio at the previous volume. Wherein, the target object is another user approaching the smart glasses, and the method includes: When the smart glasses output a first audio, obtain the detection information output by the detection component; When the detection information indicates that a target object is detected approaching the smart glasses, determine a first distance between the target object and the smart glasses according to the detection information; When the first distance is within a first predetermined range, determine a target volume corresponding to the first distance according to target mapping data, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio; Adjust the current volume of the output first audio to the target volume; Wherein, the target mapping data includes first mapping data, and the first mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in a first mode; the determining the target volume corresponding to the first distance according to the target mapping data includes: when the smart glasses are in the first mode, determining the target volume corresponding to the first distance according to the first mapping data; The target mapping data includes second mapping data, and the second mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in a second mode; the determining the target volume corresponding to the first distance according to the target mapping data includes: when the smart glasses are in the second mode, determining the target volume corresponding to the first distance according to the second mapping data.

2. The method according to claim 1, characterized in that, After the determining the first distance between the target object and the smart glasses according to the detection information, the method further includes: When the first distance is outside the first predetermined range and the first distance is less than a first threshold, pause outputting the first audio.

3. The method according to claim 1, wherein When the detection component is an infrared sensor or a camera, the determining the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that a target object is detected approaching the smart glasses includes: When the detection information indicates that a target object is detected approaching the smart glasses and the target object is a human body, determine the first distance between the target object and the smart glasses according to the detection information.

4. The method according to claim 3, wherein When the detection component is an infrared sensor, the detection information includes the echo signal received by the infrared sensor and reflected by the target object. Before determining the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the target object is approaching the smart glasses, the method further includes: Determine the reflectivity of the target object according to the echo signal; When the reflectivity of the target object is within a second predetermined range, determine that the target object is a human body.

5. The method according to claim 3, characterized in that, When the detection component is a camera, the detection information includes a first image of the target object. Before determining the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the target object is approaching the smart glasses, the method further includes: Identify the first image to obtain the feature information of the target object; Determine whether the target object is a human body according to the feature information of the target object.

6. A volume adjustment device for a smart glasses, applied to the smart glasses, characterized in that, The smart glasses include a frame and two temple arms. One end of each temple arm is connected to the frame; a speaker and a detection component are provided on each temple arm, and the detection component is arranged close to the speaker on the same temple arm. The detection component is used to detect whether a target object is approaching one side of the smart glasses, so that when it is detected that the target object is approaching the side of the smart glasses, according to the distance between the target object and the smart glasses, adjust the volume of the audio output by the speaker on the side, and at the same time control the speaker on the other side to output audio at the previous volume. Wherein, the target object is another user approaching the smart glasses, and the device includes: An acquisition module, configured to acquire the detection information output by the detection component when the smart glasses output a first audio; A first determination module, configured to determine the first distance between the target object and the smart glasses according to the detection information when the detection information indicates that the target object is approaching the smart glasses; A second determination module, configured to determine a target volume corresponding to the first distance according to target mapping data when the first distance is within a first predetermined range, where the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio; An adjustment module, configured to adjust the current volume of the output first audio to the target volume; Wherein, the target mapping data includes first mapping data, and the first mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the first mode; the second determination module is specifically configured to: when the smart glasses are in the first mode, determine the target volume corresponding to the first distance according to the first mapping data; The target mapping data includes second mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the second mode; the second determination module is specifically configured to: when the smart glasses are in the second mode, determine a target volume corresponding to the first distance according to the second mapping data.

7. An intelligent glasses, characterized in that, Comprising: A frame; Two temple arms, one end of each temple arm being connected to the frame; Speakers, the speakers being arranged on the two temple arms; A detection component, the detection component being located on the two temple arms and arranged close to the speakers, the detection component being used to detect whether a target object approaches one side of the smart glasses and obtain the distance between the target object and the smart glasses, so as to, when it is detected that the target object approaches the said side of the smart glasses, adjust the volume of the audio output by the speaker on the said side according to the distance between the target object and the smart glasses, and at the same time control the speaker on the other side to output audio at the previous volume, wherein the target object is another user approaching the smart glasses; A processor, the processor being connected to the detection component, configured to, when the speaker outputs a first audio, obtain the detection information output by the detection component, and when the detection information indicates that a target object is detected approaching the smart glasses, determine a first distance between the target object and the smart glasses according to the detection information; when the first distance is within a first predetermined range, determine a target volume corresponding to the first distance according to target mapping data, wherein the target mapping data is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio; and adjust the current volume of the output first audio to the target volume; Wherein, the target mapping data includes first mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the first mode; the processor is specifically configured to: when the smart glasses are in the first mode, determine a target volume corresponding to the first distance according to the first mapping data; The target mapping data includes second mapping data, which is data reflecting the correspondence between the distance between the target object and the smart glasses and the volume of the first audio in the second mode; the processor is specifically configured to: when the smart glasses are in the second mode, determine a target volume corresponding to the first distance according to the second mapping data.

8. The smart glasses according to claim 7, characterized in that, The detection component includes at least one of a distance sensor and a camera; Wherein, the distance sensor is an infrared sensor, a laser sensor, an ultrasonic sensor, or a millimeter wave sensor.

9. The smart glasses according to claim 8, characterized in that, When the detection component is an infrared sensor or a camera, the detection component is further used to detect whether the target object is a human body; Specifically, when the detection information indicates that a target object is approaching and the target object is a human body, the processor adjusts the volume of the first audio output by the speaker according to the distance between the target object and the smart glasses.

10. An intelligent glasses, characterized in that, The smart glasses further include a detection component, a memory for storing executable computer instructions; a processor for executing the volume adjustment method of the smart glasses according to any one of claims 1-5 under the control of the executable computer instructions; wherein the detection component is connected to the processor to output the acquired detection information to the processor, and the detection information is used to indicate whether a target object is approaching the smart glasses.

11. A computer-readable storage medium having computer instructions stored thereon, which, when run by a processor, execute the volume adjustment method of the smart glasses according to any one of claims 1-5.

Citation Information

Patent Citations

  • Volume adjustment method and volume adjustment device

    CN106488036A

  • Reminding method and apparatus in call process, and mobile terminal

    CN107959744A

  • Volume control method and terminal equipment

    CN109981904A

  • Method and device for determining volume

    CN111899733A