Volume adjustment method, system, computer device and readable storage medium

By setting up sensors and processors on the speaker device and adjusting the speaker playback power according to the relative position of the ears and speakers, the problem of inconsistent reception volumes of different users is solved, ensuring that each user can hear the appropriate volume and avoid excessive volume.

CN116419120BActive Publication Date: 2025-08-29BEIJING SUPERHEXA CENTURY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210831331.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2025-08-29
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

When different users use the same speaker device, due to different wearing positions or head structures and different distances between the ears and speakers, the volume of the received sound is inconsistent, making it difficult to achieve the most appropriate volume.

Method used

By setting a bar sensor on the sensor to sense the contact point position between the user's ear and the speaker, the processor calculates the spacing based on the pre-stored relative position information, and determines the target playback power from the playback power relationship table, adjusts the playback power of the speaker to ensure the appropriate volume.

Benefits of technology

It realizes adjusting the speaker playback power according to the specific position of the user and the speaker, ensuring that each user can receive the most appropriate volume and avoid damage to the ears due to excessive volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116419120B_ABST
    Figure CN116419120B_ABST
Patent Text Reader

Abstract

The present application provides a volume adjustment method, system, computer device, and readable storage medium, wherein the volume adjustment method is applied to a volume adjustment system, wherein the volume adjustment system includes a processor, a speaker, and a sensor, and the method includes: the sensor sends contact position information of the contact point between the user's ear and the sensor on the sensor to the processor; the processor determines the distance between the contact point and the speaker based on the contact position information and pre-stored relative position information of the speaker relative to the sensor; the processor determines the target playback power of the speaker from a preset playback power relationship table based on the distance; the processor adjusts the playback power of the speaker based on the target playback power so that the speaker can broadcast sound at the target playback power. The above method is used to ensure that the user's ears can receive sound at the most appropriate volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart devices, and in particular to a volume adjustment method, system, computer device and readable storage medium. Background Art

[0002] In the prior art, when a speaker plays sound, it usually plays the sound at a standard playback volume under a specified playback power. Since the sound will attenuate during the process from the speaker emitting the sound to the human ear receiving the sound, the sound volume received by the ears of users at different distances from the speaker will be different.

[0003] The inventors discovered in their research that when different users use the same device equipped with a speaker, the distance between the ears of different users and the speaker may be different due to the different wearing positions of the device or the structures of the users' heads. In this case, since the optimal sound volume received by each user's ears is the same, the different distances between the ears of different users and the speaker may make it difficult for the users' ears to receive sound at the optimal volume. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide a volume adjustment method, system, computer device and readable storage medium to ensure that the user's ears can receive sound at an optimal volume.

[0005] In a first aspect, an embodiment of the present application provides a volume adjustment method, which is applied to a volume adjustment system. The volume adjustment system includes a processor, a speaker, and a sensor, wherein the processor is electrically connected to the speaker and the sensor, respectively. The sensor is disposed at a position capable of contacting a user's ear, and the sensor is in a bar shape. The method includes:

[0006] The sensor sends contact position information of the contact point between the user's ear and the sensor on the sensor to the processor;

[0007] The processor determines, based on the contact position information and pre-stored relative position information of the speaker relative to the sensor, a distance between the contact point and the speaker;

[0008] The processor determines the target playback power of the speaker from a preset playback power relationship table according to the distance;

[0009] The processor adjusts the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

[0010] Optionally, after the processor adjusts the playback power of the speaker according to the target playback power, the method further includes:

[0011] The processor responds to a volume adjustment instruction issued by the user and compares the target playback power with the maximum playback power to obtain a comparison result, wherein the target playback power is the playback power at which the speaker broadcasts sound at the volume indicated by the volume adjustment instruction, the maximum playback power is the playback power at which the speaker broadcasts sound at the target maximum broadcast volume, and the target maximum broadcast volume is the volume determined by the processor from a preset maximum volume relationship table according to the distance;

[0012] The processor adjusts the current playback power of the speaker according to the comparison result, so that the speaker can perform sound broadcasting at the adjusted playback power.

[0013] Optionally, the processor adjusts the current playback power of the speaker according to the comparison result, including:

[0014] When the comparison result shows that the target playback power does not exceed the maximum playback power, the processor adjusts the playback power of the speaker to the target playback power;

[0015] When the comparison result shows that the target playback power exceeds the maximum playback power, the processor adjusts the playback power of the speaker to the maximum playback power.

[0016] Optionally, when the comparison result is that the target playback power exceeds the maximum playback power, the method further includes:

[0017] The processor broadcasts the preset alarm text via the speaker.

[0018] Optionally, the volume adjustment system is provided on a head-mounted device.

[0019] Optionally, the head-mounted device includes smart glasses, and the processor, the sensor and the speaker are arranged on the temples of the smart glasses.

[0020] Optionally, a display screen is provided on the lens of the smart glasses, and text and images can be displayed in the window of the display screen;

[0021] When the comparison result shows that the target playback power exceeds the maximum playback power, the method further includes:

[0022] The processor displays the preset alarm text and alarm image in the window of the smart glasses.

[0023] In a second aspect, an embodiment of the present application provides a volume adjustment system, the system comprising a processor, a speaker, and a sensor, the processor being electrically connected to the speaker and the sensor, respectively, the sensor being disposed in a position capable of contacting a user's ear, and the sensor being in the shape of a bar;

[0024] The sensor is configured to send contact position information of a contact point between the user's ear and the sensor on the sensor to the processor;

[0025] the processor being configured to determine a distance between the contact point and the speaker based on the contact position information and pre-stored relative position information of the speaker relative to the sensor;

[0026] The processor is configured to determine a target playback power of the speaker from a preset playback power relationship table according to the distance;

[0027] The processor is configured to adjust the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

[0028] Optionally, after the processor adjusts the playback power of the speaker according to the target playback power, the processor is configured to respond to a volume adjustment instruction issued by the user and compare the target playback power with the maximum playback power to obtain a comparison result, wherein the target playback power is the playback power at which the speaker broadcasts sound at the volume indicated by the volume adjustment instruction, the maximum playback power is the playback power at which the speaker broadcasts sound at the target maximum broadcast volume, and the target maximum broadcast volume is the volume determined by the processor from a preset maximum volume relationship table according to the interval;

[0029] The processor is used to adjust the current playback power of the speaker according to the comparison result, so that the speaker can perform sound broadcasting at the adjusted playback power.

[0030] Optionally, the processor adjusts the current playback power of the speaker according to the comparison result, specifically for:

[0031] When the comparison result shows that the target playback power does not exceed the maximum playback power, adjusting the playback power of the speaker to the target playback power;

[0032] When the comparison result shows that the target playback power exceeds the maximum playback power, the playback power of the speaker is adjusted to the maximum playback power.

[0033] Optionally, when the comparison result is that the target playback power exceeds the maximum playback power, the processor is configured to voice broadcast a preset alarm text through the speaker.

[0034] Optionally, the system is provided on a head mounted device.

[0035] Optionally, the head-mounted device includes smart glasses, and the processor, the sensor and the speaker are arranged on the temples of the smart glasses.

[0036] Optionally, a display screen is provided on the lens of the smart glasses, and text and images can be displayed in the window of the display screen;

[0037] When the comparison result is that the target playback power exceeds the maximum playback power, the processor is configured to display preset alarm text and alarm image in the window of the smart glasses.

[0038] In a third aspect, an embodiment of the present application provides a computer device comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the volume adjustment method described in any optional implementation of the first aspect are performed.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the volume adjustment method described in any optional implementation of the first aspect are executed.

[0040] The technical solutions provided by this application include but are not limited to the following beneficial effects:

[0041] The sensor sends the contact position information of the contact point between the user's ear and the sensor on the sensor to the processor; the processor determines the distance between the contact point and the speaker based on the contact position information and the pre-stored relative position information of the speaker relative to the sensor; through the above steps, the distance that the sound played by the speaker travels before being received by the human ear can be determined based on the position information of the speaker, the sensor and the contact point.

[0042] The processor determines the target playback power of the speaker from a preset playback power relationship table based on the distance; the processor adjusts the playback power of the speaker based on the target playback power so that the speaker can broadcast sound at the target playback power; through the above steps, the playback power of the speaker when playing sound is adjusted in real time according to the distance that the sound needs to propagate before the human ear is received, and the playback volume of the speaker when playing sound can be adjusted.

[0043] By adopting the above method, the target playback power of the speaker is determined according to the position information between the user's ear and the speaker, and the current playback power of the speaker is adjusted according to the target playback power to ensure that the user's ear can receive sound at the most appropriate volume.

[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0046] Figure 1 A flow chart of a volume adjustment method provided in the first embodiment of the present invention is shown;

[0047] Figure 2 A flowchart of a playback power adjustment method provided in the first embodiment of the present invention is shown;

[0048] Figure 3 A flowchart showing a specific method for adjusting playback power provided by the first embodiment of the present invention is shown;

[0049] Figure 4 A schematic diagram of smart glasses provided in the first embodiment of the present invention is shown;

[0050] Figure 5 A schematic structural diagram of a volume adjustment system provided by a second embodiment of the present invention is shown;

[0051] Figure 6 A schematic structural diagram of a computer device provided in the third embodiment of the present invention is shown. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0053] Example 1

[0054] To facilitate understanding of this application, Figure 1 The flowchart of a volume adjustment method provided in the first embodiment of the present invention is shown to describe the content of the first embodiment of the present application in detail.

[0055] See also Figure 1 As stated, Figure 1 A flow chart of a volume adjustment method provided in a first embodiment of the present invention is shown. The volume adjustment method is applied to a volume adjustment system. The volume adjustment system includes a processor, a speaker, and a sensor. The processor is electrically connected to the speaker and the sensor, respectively. The sensor is disposed at a position capable of contacting a user's ear and is in the shape of a bar. The method includes steps S101 to S104:

[0056] S101: The sensor sends contact position information of the contact point between the user's ear and the sensor on the sensor to the processor.

[0057] Specifically, the sensor is a strip sensor having two short sides (a first short side and a second short side) and two long sides (a first long side and a second long side). The sensor is placed horizontally, and the first long side and the second long side of the sensor are parallel to the ground.

[0058] When the user's ear contacts the sensor and a contact point appears, the sensor sends contact position information, that is, a first distance between the contact point and the first short side of the sensor, and a second distance between the contact point and the second short side of the sensor to the processor.

[0059] S102: The processor determines the distance between the contact point and the speaker according to the contact position information and pre-stored relative position information of the speaker relative to the sensor.

[0060] Specifically, the position of the speaker setting satisfies that it is on the same side of the two short sides of the sensor. The relative position information of the speaker relative to the sensor includes relative distance information and relative direction information. The relative distance information is the distance between the short side of the sensor closest to the speaker and the speaker. The relative direction information is the angle between the line between the midpoint of the short side of the sensor closest to the speaker and the speaker and the long side of the sensor (that is, the horizontal direction).

[0061] For example, when the first short side of the sensor is closest to the speaker, the relative distance information is the first relative distance between the first short side and the speaker, and the relative direction information is the first angle between the line connecting the speaker and the midpoint of the first short side and the long side of the sensor. When the second short side of the sensor is closest to the speaker, the relative distance information is the second relative distance between the second short side and the speaker, and the relative direction information is the second angle between the line connecting the speaker and the midpoint of the second short side and the long side of the sensor.

[0062] When determining the distance between the contact point and the speaker, the following two situations are included:

[0063] Case 1: When the first short side of the sensor is closest to the speaker, the distance a between the contact point and the speaker is calculated according to the following formula:

[0064]

[0065] Wherein, b is the first distance in step S101, c is the first relative distance, and A is the first angle.

[0066] Case 2: When the second short side of the sensor is closest to the speaker, the distance x between the contact point and the speaker is calculated according to the following formula:

[0067]

[0068] Wherein, y is the second distance in step S101, z is the second relative distance, and x is the second angle.

[0069] S103: The processor determines the target playback power of the speaker from a preset playback power relationship table according to the distance.

[0070] Specifically, the preset playback power relationship table records at least one spacing value and at least one playback power value of a speaker, each spacing value has a corresponding playback power value of the speaker, and the playback power value indicates that when the speaker plays sound at the power value, the human ear can receive the most appropriate volume at the corresponding spacing value from the speaker; because the greater the distance between the speaker and the contact point (ear), the louder the sound played by the speaker is, and the louder the volume played by the speaker is, the greater the playback power value of the speaker is required, so the spacing value in the preset playback power relationship table is directly proportional to the playback power value, that is, the larger the spacing value, the larger the corresponding playback power value.

[0071] When the processor determines the target playback power of the speaker from a preset playback power relationship table based on the spacing, the processor traverses all spacing values ​​in the playback power relationship table and determines the playback power value that has a corresponding relationship with the spacing value that is the same as the spacing determined in step S102 as the target playback power of the speaker.

[0072] S104: The processor adjusts the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

[0073] Specifically, the processor controls the loudspeaker to broadcast the sound at the target playback power, so that the volume of the sound received by the human ear at the contact point is the volume that the loudspeaker can produce at the target playback power.

[0074] In one possible embodiment, see Figure 2 As shown, Figure 2 A flowchart of a playback power adjustment method provided in the first embodiment of the present invention is shown. After the processor adjusts the playback power of the speaker according to the target playback power, the method includes steps S201 to S202:

[0075] S201: The processor responds to a volume adjustment instruction issued by the user, compares the target playback power with the maximum playback power to obtain a comparison result, wherein the target playback power is the playback power at which the speaker broadcasts sound at the volume indicated by the volume adjustment instruction, the maximum playback power is the playback power at which the speaker broadcasts sound at the target maximum broadcast volume, and the target maximum broadcast volume is the volume determined by the processor from a preset maximum volume relationship table according to the spacing.

[0076] Specifically, since the human ear will be damaged after receiving sound with a volume exceeding a certain limit, in order to ensure that the volume of the sound emitted by the speaker does not exceed the volume that is harmful to the human ear when it reaches the human ear, it is necessary to compare the playback power of the speaker corresponding to the volume indicated by the volume adjustment instruction with the maximum playback power after the processor receives a volume adjustment instruction issued by the user to adjust the volume of the sound broadcast from the speaker, so as to determine whether the volume of the sound broadcast by the speaker at the playback power corresponding to the volume adjustment instruction will cause damage to the human ear; the target maximum broadcast volume is the boundary volume value broadcast by the speaker that does not cause damage to the human ear and causes damage. When the volume of the sound broadcast by the speaker is less than or equal to the target maximum volume, it does not cause damage to the human ear. When the volume of the sound broadcast by the speaker is greater than the target maximum volume, it causes damage to the human ear.

[0077] S202: The processor adjusts the current playback power of the speaker according to the comparison result, so that the speaker can perform sound broadcasting at the adjusted playback power.

[0078] Specifically, the processor adjusts the current playback power of the speaker in real time according to the comparison result, so that the sound broadcast by the speaker will not cause damage to the user's ears.

[0079] In one possible embodiment, see Figure 3 As shown, Figure 3 A flowchart of a specific method for adjusting playback power provided in the first embodiment of the present invention is shown, wherein the processor adjusts the current playback power of the speaker according to the comparison result, including steps S301 to S302:

[0080] S301: When the comparison result shows that the target playback power does not exceed the maximum playback power, the processor adjusts the playback power of the speaker to the target playback power.

[0081] Specifically, when the comparison result shows that the target playback power does not exceed the maximum playback power, it means that when the speaker broadcasts at the target playback power, the broadcast sound will not cause damage to the human ear, so the playback power of the speaker can be adjusted to the target playback power according to user needs.

[0082] S302: When the comparison result shows that the target playback power exceeds the maximum playback power, the processor adjusts the playback power of the speaker to the maximum playback power.

[0083] Specifically, when the comparison result shows that the target playback power exceeds the maximum playback power, it means that when the speaker broadcasts at the target playback power, the sound broadcast will cause damage to the human ear, so the playback power of the speaker is adjusted to the target playback power to ensure that the human ear will not be damaged due to the excessive volume received.

[0084] In a feasible implementation manner, when the comparison result shows that the target playback power exceeds the maximum playback power, the method further includes:

[0085] The processor broadcasts the preset alarm text via the speaker.

[0086] Specifically, alarm text is stored in advance in the processor, such as "The current volume is too loud, and the volume will be adjusted automatically." When the comparison result is that the target playback power exceeds the maximum playback power, the processor will broadcast the preset alarm text through the speaker to achieve the effect of warning the user.

[0087] In a feasible embodiment, the volume adjustment system is provided on a head-mounted device.

[0088] Specifically, the volume adjustment system is provided on a head-mounted device, including but not limited to smart glasses, a helmet, ear-hook headphones, etc.

[0089] In one feasible embodiment, the head-mounted device includes smart glasses, and the processor, the sensor and the speaker are arranged on the temples of the smart glasses.

[0090] For details, see Figure 4 As shown, Figure 4 A schematic diagram of a pair of smart glasses provided in accordance with a first embodiment of the present invention is shown, wherein a processor, a speaker, and a sensor are sequentially arranged on the temples of the smart glasses, and the sensor can contact the user's ear to generate a contact point.

[0091] In a feasible embodiment, a display screen is provided on the lens of the smart glasses, and text and images can be displayed in the window of the display screen.

[0092] Specifically, a display screen is provided on the lens of the smart glasses, and text and images can be displayed in the window of the display screen. The processor can display the target content to the user on the display screen.

[0093] When the comparison result shows that the target playback power exceeds the maximum playback power, the method further includes:

[0094] The processor displays the preset alarm text and alarm image in the window of the smart glasses.

[0095] Specifically, when the comparison result is that the target playback power exceeds the maximum playback power, the processor displays the preset alarm text (such as "volume too loud") in a window on the display screen, and displays the preset alarm image (such as a red exclamation mark) in a window on the display screen, so that the user can know from the display screen of the smart glasses through the glasses that the target playback power exceeds the maximum playback power, so as to warn the user.

[0096] Example 2

[0097] See the figure, Figure 5 FIG. 1 shows a structural diagram of a volume adjustment system provided by a second embodiment of the present invention, wherein Figure 5 As shown, a volume adjustment system provided by the second embodiment of the present invention includes a processor 501, a speaker 502 and a sensor 503. The processor 501 is electrically connected to the speaker 502 and the sensor 503 respectively. The sensor 503 is arranged at a position capable of contacting the user's ear and is in the shape of a bar:

[0098] The sensor is configured to send contact position information of a contact point between the user's ear and the sensor on the sensor to the processor;

[0099] the processor being configured to determine a distance between the contact point and the speaker based on the contact position information and pre-stored relative position information of the speaker relative to the sensor;

[0100] The processor is configured to determine a target playback power of the speaker from a preset playback power relationship table according to the distance;

[0101] The processor is configured to adjust the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

[0102] In one feasible embodiment, after the processor adjusts the playback power of the speaker according to the target playback power, the processor is configured to respond to a volume adjustment instruction issued by the user and compare the target playback power with the maximum playback power to obtain a comparison result, wherein the target playback power is the playback power at which the speaker broadcasts sound at the volume indicated by the volume adjustment instruction, the maximum playback power is the playback power at which the speaker broadcasts sound at the target maximum broadcast volume, and the target maximum broadcast volume is the volume determined by the processor from a preset maximum volume relationship table according to the spacing;

[0103] The processor is used to adjust the current playback power of the speaker according to the comparison result, so that the speaker can perform sound broadcasting at the adjusted playback power.

[0104] In a feasible implementation manner, when the processor is used to adjust the playback power of the speaker according to the comparison result, it is specifically used to:

[0105] When the comparison result shows that the target playback power does not exceed the maximum playback power, adjusting the playback power of the speaker to the target playback power;

[0106] When the comparison result shows that the target playback power exceeds the maximum playback power, the playback power of the speaker is adjusted to the maximum playback power.

[0107] In a feasible implementation manner, when the comparison result is that the target playback power exceeds the maximum playback power, the processor is configured to voice broadcast a preset alarm text through the speaker.

[0108] In one possible embodiment, the system is provided on a head-mounted device.

[0109] In one feasible embodiment, the head-mounted device includes smart glasses, and the processor, the sensor and the speaker are arranged on the temples of the smart glasses.

[0110] In a feasible embodiment, a display screen is provided on the lens of the smart glasses, and text and images can be displayed in the window of the display screen;

[0111] When the comparison result is that the target playback power exceeds the maximum playback power, the processor is configured to display preset alarm text and alarm image in the window of the smart glasses.

[0112] Example 3

[0113] Based on the same application concept, see Figure 6 As shown, Figure 6 FIG. 1 shows a schematic diagram of the structure of a computer device provided by the third embodiment of the present invention, wherein Figure 6 As shown, a computer device 600 provided in the third embodiment of the present application includes:

[0114] A processor 601, a memory 602, and a bus 603. The memory 602 stores machine-readable instructions executable by the processor 601. When the computer device 600 is running, the processor 601 communicates with the memory 602 via the bus 603. When the processor 601 runs the machine-readable instructions, it executes the steps of the volume adjustment method shown in the first embodiment.

[0115] Example 4

[0116] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a volume adjustment method described in any one of the above embodiments are executed.

[0117] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0118] The computer program product for volume adjustment provided in an embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the above method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.

[0119] The volume adjustment system provided in the embodiments of the present invention can be specific hardware on a device or software or firmware installed on the device. The implementation principles and technical effects of the system provided in the embodiments of the present invention are the same as those of the aforementioned method embodiments. For the sake of brevity, any details not mentioned in the system embodiments can be referred to the corresponding contents of the aforementioned method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific operating processes of the aforementioned systems, devices, and units can all refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0120] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interface, the indirect coupling or communication connection of the device or unit may be electrical, mechanical or other forms.

[0121] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0122] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0124] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0125] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. However, such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A volume adjustment method, characterized in that: The volume adjustment method is applied to a volume adjustment system, which includes a processor, a speaker, and a sensor. The processor is electrically connected to the speaker and the sensor, respectively. The sensor is disposed at a position capable of contacting a user's ear and is in a bar shape. The method includes: The sensor sends contact position information of the contact point between the user's ear and the sensor on the sensor to the processor; The processor determines, based on the contact position information and pre-stored relative position information of the speaker relative to the sensor, a distance between the contact point and the speaker; The processor determines the target playback power of the speaker from a preset playback power relationship table according to the distance; The processor adjusts the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

2. The method according to claim 1, characterized in that After the processor adjusts the playback power of the speaker according to the target playback power, the method further includes: The processor responds to a volume adjustment instruction issued by the user and compares the target playback power with the maximum playback power to obtain a comparison result, wherein the target playback power is the playback power at which the speaker broadcasts sound at the volume indicated by the volume adjustment instruction, the maximum playback power is the playback power at which the speaker broadcasts sound at the target maximum broadcast volume, and the target maximum broadcast volume is the volume determined by the processor from a preset maximum volume relationship table according to the distance; The processor adjusts the current playback power of the speaker according to the comparison result, so that the speaker can perform sound broadcasting at the adjusted playback power.

3. The method according to claim 2, characterized in that The processor adjusts the current playback power of the speaker according to the comparison result, including: When the comparison result shows that the target playback power does not exceed the maximum playback power, the processor adjusts the playback power of the speaker to the target playback power; When the comparison result shows that the target playback power exceeds the maximum playback power, the processor adjusts the playback power of the speaker to the maximum playback power.

4. The method according to claim 3, characterized in that When the comparison result shows that the target playback power exceeds the maximum playback power, the method further includes: The processor broadcasts the preset alarm text via the speaker.

5. The method according to claim 4, characterized in that The volume adjustment system is provided on a head mounted device.

6. The method according to claim 5, characterized in that The head-mounted device includes smart glasses, and the processor, the sensor and the speaker are arranged on the temples of the smart glasses.

7. The method according to claim 6, characterized in that The lenses of the smart glasses are provided with a display screen, and text and images can be displayed in the window of the display screen; When the comparison result shows that the target playback power exceeds the maximum playback power, the method further includes: The processor displays the preset alarm text and alarm image in the window of the smart glasses.

8. A volume adjustment system, characterized in that: The system includes a processor, a speaker, and a sensor, wherein the processor is electrically connected to the speaker and the sensor respectively, and the sensor is arranged at a position capable of contacting the user's ear, and the sensor is in the shape of a bar; The sensor is configured to send contact position information of a contact point between the user's ear and the sensor on the sensor to the processor; the processor being configured to determine a distance between the contact point and the speaker based on the contact position information and pre-stored relative position information of the speaker relative to the sensor; The processor is configured to determine a target playback power of the speaker from a preset playback power relationship table according to the distance; The processor is configured to adjust the playback power of the speaker according to the target playback power, so that the speaker can perform sound broadcasting at the target playback power.

9. A computer device, characterized in that: include: A processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus. When the machine-readable instructions are executed by the processor, the steps of the volume adjustment method according to any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the volume adjustment method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for handling receiving voice

    CN101937682A

  • Display screen sound production method and device, electronic device and storage medium

    CN108712571A