CN112235459B - Volume adjustment method, electronic device, and computer-readable storage medium - Google Patents

Volume adjustment method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN112235459B
CN112235459B CN202011064777.6A CN202011064777A CN112235459B CN 112235459 B CN112235459 B CN 112235459B CN 202011064777 A CN202011064777 A CN 202011064777A CN 112235459 B CN112235459 B CN 112235459B
Authority
CN
China
Prior art keywords
terminal
volume
user
determining
human body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011064777.6A
Other languages
Chinese (zh)
Other versions
CN112235459A (en
Inventor
吴杰
刘涛
董庆军
张学丽
杨硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Music Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011064777.6A priority Critical patent/CN112235459B/en
Publication of CN112235459A publication Critical patent/CN112235459A/en
Application granted granted Critical
Publication of CN112235459B publication Critical patent/CN112235459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention relates to the technical field of terminals and discloses a volume adjusting method, electronic equipment and a computer readable storage medium. The volume adjusting method comprises the following steps: acquiring density information of each position in a preset range; wherein the preset range is determined based on the position of the terminal; determining the human body contour of the user corresponding to the terminal according to the density information; determining the relative position of the terminal and the user according to the human body contour; according to the relative position, the volume of the terminal is adjusted, so that the volume of the terminal can be automatically and reasonably adjusted, and the comfort level of the current acceptable volume of a user can be adapted to a certain extent.

Description

Volume adjustment method, electronic device, and computer-readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a volume adjusting method, electronic equipment and a computer readable storage medium.
Background
At present, if the mobile phone needs to be controlled in volume, the commonly adopted method is as follows: the volume of the mobile phone can be adjusted by the manual control of the user or the voice assistant control, for example, the user presses a volume button on the mobile phone to adjust the volume, or the user sends a voice instruction for adjusting the volume through the voice assistant.
However, the inventors found that at least the following problems exist in the related art: the existing volume adjusting mode can adjust the volume only by the participation of a user, and the mobile phone is difficult to automatically and reasonably adjust the volume so as to adapt to the comfort level of the volume which can be currently accepted by the user, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a volume adjusting method, electronic equipment and a computer readable storage medium, so that the volume of a terminal can be automatically and reasonably adjusted, and the comfort level of the currently acceptable volume of a user can be adapted to a certain extent.
In order to solve the above technical problem, an embodiment of the present invention provides a volume adjusting method, including: acquiring density information of each position in a preset range; wherein the preset range is determined based on the position of the terminal; determining the human body contour of the user corresponding to the terminal according to the density information; determining the relative position of the terminal and the user according to the human body contour; and adjusting the volume of the terminal according to the relative position.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the volume adjustment method as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the volume adjustment method described above.
Compared with the prior art, the method and the device for determining the human body contour of the user based on the terminal acquire the density information of each position in the preset range determined based on the position of the terminal, and determine the human body contour of the user corresponding to the terminal according to the density information. Because the density information between the object and the human body usually has difference, the density information at each position can reflect whether each position is the human body or other objects except the human body to a certain extent, and therefore, according to the density information at each position, the human body contour of the user corresponding to the terminal can be reasonably determined. The method comprises the steps of determining the relative position of a terminal and a user according to a human body contour, adjusting the volume of the terminal according to the relative position, wherein the relative position of the terminal and the user can reflect the distance between the terminal and the user to a certain extent, so that the distance between the terminal and the user can be considered according to the relative position of the terminal and the user, the volume of the terminal can be adjusted reasonably, and the method is suitable for the comfort level of the user which can accept the volume currently.
In addition, the determining the relative position of the terminal and the user according to the human body contour includes: determining the head position of the user according to the human body contour; and determining the relative position of the terminal and the head of the user according to the head position and the position of the terminal. That is to say, the volume of the terminal can be adjusted subsequently according to the relative position of the terminal and the head of the user, and the relative position of the terminal and the head of the user can reflect the distance between the terminal and the ear of the user, so that the distance between the terminal and the ear of the user can be considered conveniently according to the relative position of the terminal and the head of the user, the volume of the terminal can be adjusted reasonably, and the comfort degree of the volume which can be accepted by the ear of the user can be better adapted.
In addition, the adjusting the volume of the terminal according to the relative position includes: determining whether the user holds the terminal; and if the user holds the terminal, adjusting the volume of the terminal according to the relative position. That is to say, after it is detected that the user holds the terminal, the terminal is triggered to adjust the volume of the terminal according to the relative position, and the time for adjusting the volume is accurately positioned to the time when it is detected that the user holds the terminal. After the user holds the terminal, more likely hold the terminal position in order to change the terminal, the relative position change of terminal and people's ear is probably more frequent, under this condition, according to terminal and user's relative position, adjusts the volume at terminal, is favorable to adapting to the relative position change of terminal and people's ear, carries out dynamic adjustment to the volume, is favorable to the volume at more reasonable regulation terminal for volume control is more intelligent.
In addition, the obtaining density information at each position in the preset range includes: after the terminal is determined to be in a calling state or a called state, acquiring density information of each position in a preset range; the adjusting the volume of the terminal according to the relative position comprises: and adjusting the volume of the ring played by the terminal according to the relative position. That is to say, when the user is used as a calling party or a called party, the volume of the ring played by the terminal can be adjusted according to the relative positions of the user and the terminal, which is beneficial to adapting the adjusted ring volume to the comfort level of the volume which can be currently accepted by the user, and improving the calling or called experience of the user.
In addition, according to the relative position, adjusting the volume of the ring played by the terminal includes: sending the relative position to a color ring platform so that the color ring platform can determine the adjusted ring volume and send the ring played by the adjusted ring volume to the terminal; and playing the ring tone sent by the color ring platform. The relative position is sent to the color ring platform, so that the color ring platform determines the adjusted ring volume and sends the ring played by the adjusted ring volume to the terminal, the terminal directly plays the ring sent by the color ring platform, the processing burden of the terminal is reduced to a certain extent, the speed of volume adjustment is increased, the volume is automatically adjusted when the ring sounds, and the volume adjustment is more intelligent.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of a volume adjustment method according to a first embodiment of the present invention;
fig. 2 is a plan view schematically illustrating a preset range in the first embodiment according to the present invention;
fig. 3 is a flowchart of a volume adjustment method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of determining a human body contour based on density difference information according to a second embodiment of the present invention;
fig. 5 is a flowchart of a volume adjustment method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The first embodiment of the invention relates to a volume adjusting method, which is applied to electronic equipment, wherein the electronic equipment can be a terminal or a server, and the terminal can be a mobile phone, a tablet personal computer and other equipment. The application scenarios of the present embodiment may include, but are not limited to: the method comprises the steps of carrying out volume adjustment on video played by the terminal, carrying out volume adjustment on audio played by the terminal, carrying out volume adjustment on ringtone played by the terminal and the like. The following describes the implementation details of the volume adjustment method of the present embodiment in detail, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
A flowchart of a volume adjustment method in the present embodiment is shown in fig. 1, and includes:
step 101: and obtaining the density information of each position in the preset range.
The preset range is determined based on the position of the terminal, so that a user corresponding to the terminal can be located in the preset range. The user corresponding to the terminal can be understood as a user using the terminal, such as a user using the terminal to watch video, listen to music, and make and receive calls.
In one example, the preset range may be a sphere range in which any point on the terminal is a sphere center and r is a radius. Wherein r can be set according to actual needs, for example, the higher the height of the user, the larger r is. Referring to fig. 2, the predetermined range is a sphere range formed by taking the center of gravity of the terminal as the center of sphere and 2m as the radius. It should be noted that fig. 2 is only a schematic plan view corresponding to the sphere range provided for convenience of description, and in a specific implementation, the sphere range is a three-dimensional perspective view.
In another example, the preset range may be a square range with x as a side length and centered at any point on the terminal. Wherein x can be set according to actual needs, for example, the higher the height of the user, the larger x is.
In one example, a density detector may be pre-positioned within the terminal, the density detector being configured to detect density. The terminal can obtain density information of each position in a preset range through a built-in density detector; the density information at each position can be understood as: and density information of all points in the preset range, such as the density of all points, wherein all points in the preset range respectively have respective coordinates. The origin of coordinates may be set according to actual needs, for example, a central point of the preset range may be used as the origin of coordinates, however, other points within the preset range may also be used as the origin of coordinates according to actual needs, and the selection of the origin of coordinates is not specifically limited in this embodiment.
In a specific implementation, a human body and objects other than the human body may exist within a preset range, such as: the density information of the position of the human body can be the density of the human body, and the density information of the position of the object can be the density of the object.
In one example, the electronic device may obtain density information at each position within a preset range after detecting a preset trigger condition. The preset trigger condition may be set according to actual needs, and is used to indicate that the user wishes to start to automatically adjust the volume, for example, after the preset trigger condition is detected, a preset density detector in the terminal is turned on, and density detection is started to obtain density information at each position in a preset range.
In an example, the volume adjustment method in this embodiment is applied to an electronic device, where the electronic device is a terminal, and the terminal can directly obtain density information at each position in a preset range.
In another example, the volume adjustment method in this embodiment is applied to an electronic device, where the electronic device is a server, and after acquiring the density information, the terminal sends the acquired density information to the server, so that the server can receive the density information sent by the terminal.
Step 102: and determining the human body contour of the user corresponding to the terminal according to the density information.
It is understood that the obtained density information at each position within the preset range may include: the density of the position of the human body and the density of the position of the object. The electronic equipment can determine the position of the human body according to the acquired density information of each position in the preset range, and determine the human body contour of the user corresponding to the terminal according to the position of the human body. The terminal can determine the set of the target points with the density within the preset range being the density of the human body as the position of the human body. And drawing the human body contour of the user corresponding to the terminal according to each target point. Wherein, the human body contour can be a three-dimensional human body contour.
In one example, the height and the weight of the user can be input, and when the human body contour of the user is determined, the height and the weight of the user can be combined, so that the human body contour of the user can be determined more accurately and rapidly.
In one example, according to the density information, the manner of determining the human body contour of the user corresponding to the terminal may be as follows:
firstly, if it is determined that the user touches the terminal, the terminal is triggered to start somatosensory safe current. Wherein, if the terminal detects the grip value, it may be determined that the user touches the terminal, however, in a specific implementation, the manner of determining whether the user touches the terminal is not limited thereto. The body-sensing safe current started by the terminal is the safe current which can be borne by a human body, namely body-sensing weak current, so that the influence on the human body is avoided.
Then, an electrolytic reaction in which a somatosensory safe current enters each joint part of the user is determined, and the movement state of each joint part is determined based on the electrolytic reaction. It can be understood that different activity states of each joint part may correspond to different electrolytic reactions, and the corresponding relationship between the activity states and the electrolytic reactions may be pre-stored in the electronic device, so that the activity state corresponding to the electrolytic reaction of each joint part may be determined according to the corresponding relationship. The following is a brief description of the motion state using the elbow joint as an example:
the moving state of the elbow joint can comprise a bending and stretching angle and a rotating angle, wherein the bending and stretching is to straighten the arm and bend the arm, and the rotating is to pronate and supinate the forearm for controlling the palm of the hand to face downwards and upwards. The normal functional range is 135 degrees to 150 degrees of flexion, 80 degrees to 90 degrees of pronation or supination, 10 degrees to 15 degrees of hyperextension, the hyperextension is a physiological eversion angle, also called as an object carrying angle, and the hyperextension is obvious when a heavy object is lifted, so that a certain distance can be kept between a body and the heavy object. Therefore, when a user holds the terminal by hand and brings the terminal close to the ear of the person, the activity state of the elbow joint changes gradually, and the change of the activity state of the elbow joint can reflect the change of the position relation between the terminal and the ear of the person to a certain extent.
And finally, determining the human body contour of the user corresponding to the terminal according to the density information and the activity state. That is to say, the human body contour of the user corresponding to the terminal is determined by combining the density information and the activity states of the parts of the human body, and the human body contour can reflect the activity states of the parts of the human body, so that the dynamic human body contour can be obtained more easily, and the change of the position relationship between the terminal and the human ear can be determined more accurately.
Step 103: and determining the relative position of the terminal and the user according to the human body outline.
In one example, the human body contour is within a preset range, and since the preset range is determined based on the position of the terminal, the relative position of the terminal and the user can be determined according to the position of the human body contour in the preset range. For example, the relative position between the terminal and the user may be a separation distance between the terminal and the user, and if the separation distance is smaller, it may be considered that the terminal and the user are relatively close; if the separation distance is large, the terminal and the user can be considered to be relatively far away.
In one example, the implementation of step 103 may be as follows:
first, the head position of the user is determined according to the human body contour. It can be understood that the electronic device can roughly distinguish various parts of the human body, such as the head, the hands, the legs, and the like of the human body according to the human body contour. Therefore, the electronic device may determine the head position of the user according to the human body contour, the head position may be a coordinate of a center point where the head of the user is located, and the coordinate may be a three-dimensional coordinate. In a specific implementation, the position of the ear in the head of the user can be further determined according to the human body contour, and the position of the ear can be represented by the coordinate of the central point where the ear is located.
Then, the relative position of the terminal and the user's head is determined based on the head position and the position of the terminal.
In one example, the head position may be a three-dimensional coordinate of the head, from which the height of the head may be determined. The position of the terminal can be a three-dimensional coordinate of the terminal, and the height of the terminal can be determined according to the three-dimensional coordinate of the terminal. The three-dimensional coordinates of the head and the three-dimensional coordinates of the terminal are three-dimensional coordinates in the same coordinate system, the height of the head may be a Z-axis coordinate in the three-dimensional coordinates of the head, and the height of the terminal may be a Z-axis coordinate in the three-dimensional coordinates of the terminal. From the height of the head and the height of the terminal, the height difference between the terminal and the head of the user can be determined as the relative position of the terminal and the head of the user. If the height difference is small, the terminal can be considered to be relatively close to the head of the user; if the height difference is large, it can be considered that the terminal is relatively far from the head of the user. In another example, the height difference between the terminal and the ear of the user may be further determined according to the height of the ear in the head of the user and the height of the terminal, and the height difference may be used as the relative position between the terminal and the middle ear of the head of the user.
In another example, a horizontal distance of the terminal from the head of the user may be determined from the three-dimensional coordinates of the terminal and the head, and the horizontal distance may be taken as a relative position of the terminal and the head of the user.
Optionally, the spatial distance between the terminal and the head of the user may be determined according to the three-dimensional coordinates of the terminal and the head, and the spatial distance may be used as the relative position between the terminal and the head of the user.
In a specific implementation, the three-dimensional coordinates of the head may be three-dimensional coordinates of any point of the head, such as three-dimensional coordinates of a center point of the head. The three-dimensional coordinates of the terminal may be three-dimensional coordinates of any point in the terminal, such as three-dimensional coordinates of a center point of the terminal.
Step 104: and adjusting the volume of the terminal according to the relative position.
Specifically, if the distance between the terminal and the user is determined to be large according to the relative position of the terminal and the user, the volume of the terminal can be increased; if the distance between the terminal and the user is determined to be small according to the relative position of the terminal and the user, the volume of the terminal can be reduced. In a specific implementation, the separation distance may be proportional to the adjusted volume, that is, the larger the separation distance is, the larger the adjusted volume is, so that the user can hear the sound emitted by the terminal even if the user is far away from the terminal; the smaller the spacing distance is, the smaller the adjusted volume is, so that when the user is close to the terminal, the volume of the sound emitted by the terminal is not too large, and the hearing experience of the user is not influenced. The volume of the terminal may be the volume of a video played by the terminal, the volume of music played by the terminal, or the like. Optionally, in this embodiment, the volume of the terminal may be adjusted in real time according to the change of the relative position.
In one example, the separation distance between the terminal and the user may include: the vertical separation distance. The vertical separation distance may be a height difference between the terminal and the head of the user as described above, or may be a height difference between the terminal and the ear of the user as described above. In another example, the separation distance between the terminal and the user may include: a horizontal separation distance, which may be the horizontal distance of the head of the user as described above. Optionally, the separation distance between the terminal and the user may include: a spatial separation distance, which may be the spatial distance of the terminal from the head of the user as described above.
In one example, the terminal may determine whether the user holds the terminal, and adjust the volume of the terminal according to the relative position if it is determined that the user holds the terminal. The terminal can detect whether the terminal has grip strength, so as to determine whether a user holds the terminal. For example, it may be determined that the user holds the terminal if it is detected that the terminal has a grip, or it may be determined that the user does not hold the terminal. In a specific implementation, whether the terminal has grip strength is detected according to a pressure sensor built in the terminal. That is to say, after it is detected that the user holds the terminal, the terminal is triggered to adjust the volume of the terminal according to the relative position, and the time for adjusting the volume is accurately positioned to the time when it is detected that the user holds the terminal. In this example, considering that the user is more likely to hold the terminal to change the position of the terminal after holding the terminal, the relative position of the terminal and the human ear may change more frequently, and the distance between the terminal and the human ear may change faster. Under the condition, the volume of the terminal is adjusted according to the relative position of the terminal and the user, the relative position change of the terminal and the human ear is favorably adapted, the volume is dynamically adjusted, the more reasonable adjustment of the volume of the terminal is favorably realized, and the volume adjustment is more intelligent.
The above examples in the present embodiment are only for convenience of understanding, and do not limit the technical aspects of the present invention.
Compared with the prior art, the embodiment acquires the density information of each position in the preset range determined based on the position of the terminal, and determines the human body contour of the user corresponding to the terminal according to the density information. Because the density information between the object and the human body usually has difference, the density information at each position can reflect whether each position is the human body or other objects except the human body to a certain extent, and therefore, according to the density information at each position, the human body contour of the user corresponding to the terminal can be reasonably determined. The method comprises the steps of determining the relative position of a terminal and a user according to a human body contour, adjusting the volume of the terminal according to the relative position, wherein the relative position of the terminal and the user can reflect the distance between the terminal and the user to a certain extent, so that the distance between the terminal and the user can be considered according to the relative position of the terminal and the user, the volume of the terminal can be adjusted reasonably, and the method is suitable for the comfort level of the user which can accept the volume currently.
A second embodiment of the present invention relates to a volume adjustment method. The following describes the implementation details of the volume adjustment method of the present embodiment in detail, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
A flowchart of the volume adjustment method according to the present embodiment is shown in fig. 3, and includes:
step 201: and obtaining the density information of each position in the preset range.
Step 201 is substantially the same as step 101 in the first embodiment, and is not described herein again to avoid repetition.
Step 202: one position is selected among the positions as a reference position, and the other positions are taken as referenced positions.
That is, one point may be selected as a reference point (may also be referred to as a reference point) among all points within a preset range, and points other than the reference point may be taken as referenced points.
In one example, referring to fig. 2, the position of the center of the sphere within the preset range, i.e., within the sphere range, may be used as the reference position, and the positions other than the center of the sphere within the sphere range may be used as the referenced positions. In the present embodiment, the position of the center of the sphere is taken as an example only, and the specific implementation is not limited to this.
Step 203: based on the density information, density difference information between the reference position and each of the referenced positions is determined.
Specifically, according to the density information of each position in the preset range, the density difference information between the reference position and each referenced position is determined, that is, the difference between the density information of the reference position and the density information of each referenced position is obtained, so as to obtain the density difference information between the reference position and each referenced position. That is, for each referenced position, density difference information between the referenced position and the referenced position is corresponded.
Step 204: and determining the human body contour of the user corresponding to the terminal according to the density difference information.
In one example, referring to fig. 4, the point where the center of the sphere is located is used as the reference position, and the density difference information of each referenced position and the reference position is respectively obtained as +1, +0, +2, -1 in the figure; wherein, +1 represents that the density size difference between the reference position and the referenced position is + 1; +0 indicates that the difference of the density of the reference position and the referenced position is 0, namely the density of the reference position and the referenced position is the same; +2 indicates that the density size difference between the reference position and the referenced position is + 2. And depicting the positions with the same density difference information into an edge wire frame diagram, and then taking the edge wire frame diagram approximate to the human body as the human body outline of the user corresponding to the terminal. For example, referring to fig. 4, the edge line diagram drawn at each position with density difference information of +1 approximates to the human body, and therefore, the line frame diagram drawn at each position with density difference information of +1 can be used as the human body contour of the user corresponding to the terminal.
In specific implementation, a preset clustering algorithm can be adopted, and the human body contour of the user corresponding to the terminal is determined according to the density difference information, so that the accuracy of the determined human body contour is improved. The preset clustering algorithm can be selected according to actual needs, such as a K-means clustering algorithm, namely a K-means clustering algorithm.
Step 205: and determining the relative position of the terminal and the user according to the human body outline.
Step 206: and adjusting the volume of the terminal according to the relative position.
Step 205 to step 206 are substantially the same as step 103 to step 104 in the first embodiment, and are not described herein again to avoid repetition.
The above examples in the present embodiment are only for convenience of understanding, and do not limit the technical aspects of the present invention.
Compared with the prior art, in the embodiment, when the human body contour of the user corresponding to the terminal is determined, one position is selected from each position as the reference position, other positions are used as the referenced positions, the density difference information between the reference position and each referenced position is determined according to the density information, and the human body contour of the user corresponding to the terminal is determined according to the density difference information. In consideration of the fact that actually detected density information at each position may have errors, in the embodiment, the human body contour of the user corresponding to the terminal is determined according to the density difference information, which is beneficial to improving the accuracy of the determined human body contour.
A third embodiment of the present invention relates to a sound volume adjustment method. The application scenario of the embodiment may be to adjust the volume of the ring tone played by the terminal. The following describes the implementation details of the volume adjustment method of the present embodiment in detail, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
As shown in fig. 5, a flow chart of the volume adjustment method according to the present embodiment includes:
step 301: and after the terminal is determined to be in the calling state or the called state, acquiring density information of each position in a preset range.
In one example, when it is determined that the terminal is in a calling state or a called state, a preset density detector in the terminal may be turned on, so as to start to acquire density information at each position within a preset range. The implementation manner of obtaining the density information at each position in the preset range may refer to step 101 in the first embodiment, and in order to avoid repetition, this embodiment is not specifically limited to this.
In one example, before obtaining the density information at each position within the preset range after determining that the terminal is in the calling state or the called state, the method further includes: and determining that the terminal is not externally connected with a playback device. Wherein, external playback equipment can be: earphones, sound boxes, televisions and the like.
In one example, for a called terminal, when a calling terminal calls the called terminal, a color ring platform may obtain number information corresponding to the called terminal. Then, the polyphonic ringtone platform can send an external equipment viewing request to the called terminal according to the number information corresponding to the called terminal. The called terminal feeds back a feedback result of whether the called terminal is externally connected with the playback device to the polyphonic ringtone platform, and if the polyphonic ringtone platform determines that the called terminal is not externally connected with the playback device, the called terminal can be sent with an instruction to indicate the called terminal to start to acquire density information at each position in a preset range determined based on the position of the called terminal.
In another example, for the calling terminal, when the calling terminal calls the called terminal, if it is determined that the calling terminal is not externally connected with a sound reproduction device, the calling terminal may start to acquire density information at each position within a preset range determined based on the position of the calling terminal.
In the specific implementation, if it is determined that a terminal (a calling terminal or a called terminal) is externally connected with a playback device, the volume of the ring played by the terminal can be directly adjusted to the volume comfortable for human ears without acquiring density information at each position within a preset range; wherein, the comfortable volume of people's ear can set up according to actual need, and different users can predetermine the comfortable volume of different people's ears according to individual comfort level. For example, however, the specific value of the sound volume comfortable for the human ear is not particularly limited in the present embodiment. For example, if the called terminal is externally connected with a bluetooth headset, the ring volume of the terminal can be automatically adjusted to a volume comfortable for human ears when the terminal is called, so that the user is prevented from being scared by too large ring volume, and the hearing experience of the user is improved.
Step 302: and determining the human body contour of the user corresponding to the terminal according to the density information.
Step 303: and determining the relative position of the terminal and the user according to the human body outline.
Steps 302 to 303 are substantially the same as steps 102 to 103 in the first embodiment, and are not repeated here to avoid repetition.
Step 304: and adjusting the volume of the ring tone played by the terminal according to the relative position.
Step 304 is substantially the same as step 104 in the first embodiment, except that the volume of the ring tone played by the terminal is mainly adjusted in this embodiment. The ring played by the terminal may be a ring played by the called terminal during the process of calling the called terminal by the calling terminal, or a ring played by the calling terminal.
In an example, the volume adjusting method in this embodiment is applied to an electronic device, where the electronic device is a terminal, and the terminal may send the relative position to a color ring platform, so that the color ring platform determines the adjusted ring volume and sends a ring played with the adjusted ring volume to the terminal, and then the terminal plays the ring sent by the color ring platform.
To facilitate understanding of the present embodiment, the following scenarios are exemplified by adjusting the volume of the terminal ring, where the terminal is exemplified by a mobile phone:
scene one: the user takes the phone out of the pocket. When the mobile phone is in a pocket, the mobile phone is far away from the head of a user (the vertical spacing distance is large), so that the volume of the ring can be adjusted to be about 80% of the maximum volume. The user may take the phone out (e.g., detect a holding force value) and adjust the volume of the ring tone from about 80% of the maximum volume to about 50% of the maximum volume. In a specific implementation, the vertical distance between the mobile phone and the head of the user is gradually reduced, and the volume of the ring tone can be gradually adjusted from about 80% of the maximum volume to about 50% of the maximum volume.
Scene two: the user holds the mobile phone by hand and swings left and right in the air. For example, when the mobile phone detects a holding force value and detects that the vertical spacing distance between the mobile phone and the head of the user fluctuates within a small range, it can be determined that the user holds the mobile phone by hand and swings left and right in the air. In this process, the volume of the ring tone may be kept unchanged, for example, the volume of the ring tone may be adjusted to about 70% of the maximum volume and kept unchanged. Alternatively, the volume is turned up or down in a small range with 70% of the maximum volume as a reference.
Scene three: the user places the phone into the pocket from the head position. For example, the vertical distance between the mobile phone and the head of the user gradually increases, and the volume of the ring tone can be gradually adjusted from about 50% of the maximum volume to about 80% of the maximum volume. In specific implementation, the peak value of the adjusted volume may be preset to be 85% of the maximum volume, so as to avoid damage to the mobile phone due to too large volume of the mobile phone.
The above examples in the present embodiment are only for convenience of understanding, and do not limit the technical aspects of the present invention.
Compared with the prior art, in the embodiment, when the user is used as a calling party or a called party, the volume of the ringtone played by the terminal can be adjusted according to the relative position of the user and the terminal, so that the adjusted ringtone volume is suitable for the comfort level of the volume which can be accepted by the user at present, and the calling experience or the called experience of the user is improved. In addition, the relative position is sent to the color ring platform, so that the color ring platform determines the adjusted ring volume and sends the ring played with the adjusted ring volume to the terminal, the terminal directly plays the ring sent by the color ring platform, the processing burden of the terminal is reduced to a certain extent, the speed of volume adjustment is accelerated, the volume is automatically adjusted when the ring sounds, and the volume adjustment is more intelligent.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to an electronic device, as shown in fig. 6, including at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the volume adjustment method in the first to third embodiments.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (9)

1. A method of adjusting volume, comprising:
acquiring density information of each position in a preset range; wherein the preset range is determined based on the position of the terminal;
determining the human body contour of the user corresponding to the terminal according to the density information;
determining the relative position of the terminal and the user according to the human body contour;
adjusting the volume of the terminal according to the relative position;
determining the human body contour of the user corresponding to the terminal according to the density information, wherein the determining comprises the following steps:
if the fact that the user touches the terminal is determined, triggering the terminal to start somatosensory safe current;
determining the electrolytic reaction of the somatosensory safe current entering each joint part of the user;
determining the activity state of each joint part of the user according to the electrolytic reaction;
and determining the human body contour of the user corresponding to the terminal according to the density information and the activity state.
2. The volume adjustment method according to claim 1, wherein the determining the relative position of the terminal and the user according to the human body contour comprises:
determining the head position of the user according to the human body contour;
and determining the relative position of the terminal and the head of the user according to the head position and the position of the terminal.
3. The volume adjustment method according to claim 1, wherein the adjusting the volume of the terminal according to the relative position comprises:
determining whether the user holds the terminal;
and if the user holds the terminal, adjusting the volume of the terminal according to the relative position.
4. The method of claim 1, wherein the obtaining density information at each location within a preset range comprises:
after the terminal is determined to be in a calling state or a called state, acquiring density information of each position in a preset range;
the adjusting the volume of the terminal according to the relative position comprises:
and adjusting the volume of the ring played by the terminal according to the relative position.
5. The volume adjustment method according to claim 4, wherein after determining that the terminal is in the calling state or the called state, before the obtaining the density information at each position within the preset range, the method further comprises:
and determining that the terminal is not externally connected with a playback device.
6. The volume adjustment method according to claim 4 or 5, wherein the adjusting the volume of the ring tone played by the terminal according to the relative position comprises:
sending the relative position to a color ring platform so that the color ring platform can determine the adjusted ring volume and send the ring played by the adjusted ring volume to the terminal;
and playing the ring tone sent by the color ring platform.
7. The volume adjustment method according to claim 1, wherein a density detector is built in the terminal, and the obtaining density information at each position in a preset range includes:
and acquiring density information of each position in a preset range through the density detector.
8. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the volume adjustment method of any one of claims 1 to 7.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the volume adjustment method of any one of claims 1 to 7.
CN202011064777.6A 2020-09-30 2020-09-30 Volume adjustment method, electronic device, and computer-readable storage medium Active CN112235459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011064777.6A CN112235459B (en) 2020-09-30 2020-09-30 Volume adjustment method, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011064777.6A CN112235459B (en) 2020-09-30 2020-09-30 Volume adjustment method, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112235459A CN112235459A (en) 2021-01-15
CN112235459B true CN112235459B (en) 2022-03-04

Family

ID=74120351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011064777.6A Active CN112235459B (en) 2020-09-30 2020-09-30 Volume adjustment method, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112235459B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022198398A1 (en) * 2021-03-22 2022-09-29 北京小米移动软件有限公司 Control instruction method and device, and behavior control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201369757Y (en) * 2008-11-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 Automatic sound volume regulating device for mobile terminal and mobile terminal
CN104714642A (en) * 2015-03-02 2015-06-17 惠州Tcl移动通信有限公司 Mobile terminal and gesture recognition processing method and system thereof
CN106845378A (en) * 2017-01-03 2017-06-13 江苏慧眼数据科技股份有限公司 It is a kind of to in image recognize human body target method
CN107343076A (en) * 2017-08-18 2017-11-10 广东欧珀移动通信有限公司 Volume adjusting method, device, storage medium and mobile terminal
CN107920263A (en) * 2016-10-11 2018-04-17 杭州萤石网络有限公司 Volume adjusting method and device
CN108111698A (en) * 2018-02-09 2018-06-01 上海思愚智能科技有限公司 A kind of incoming call reminding method and smart machine
CN108742668A (en) * 2018-06-28 2018-11-06 河北格物仪器设备有限公司 A kind of picture reproducer of belt profile scanning
US10481856B2 (en) * 2017-05-15 2019-11-19 Microsoft Technology Licensing, Llc Volume adjustment on hinged multi-screen device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009042968B4 (en) * 2009-09-24 2011-07-07 ATLAS ELEKTRONIK GmbH, 28309 Method and device for measuring a soil profile
CN103745218B (en) * 2014-01-26 2017-02-15 清华大学 Gesture identification method and device in depth image
CN105979358A (en) * 2016-05-05 2016-09-28 青岛海信电器股份有限公司 Volume adjusting method and apparatus and smart terminal
CN106020227B (en) * 2016-08-12 2019-02-26 北京奇虎科技有限公司 The control method of unmanned plane, device
EP3343474A1 (en) * 2016-12-29 2018-07-04 Skidata Ag Method for making effective use of the capacity of devices in a ski area, a trade fair, an amusement arcade or in a stadium
CN107302638A (en) * 2017-08-18 2017-10-27 广东欧珀移动通信有限公司 A kind of volume adjusting method, device, storage medium and mobile terminal
CN111507134A (en) * 2019-01-31 2020-08-07 北京奇虎科技有限公司 Human-shaped posture detection method and device, computer equipment and storage medium
CN110348419B (en) * 2019-07-18 2023-03-24 三星电子(中国)研发中心 Method and device for photographing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201369757Y (en) * 2008-11-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 Automatic sound volume regulating device for mobile terminal and mobile terminal
CN104714642A (en) * 2015-03-02 2015-06-17 惠州Tcl移动通信有限公司 Mobile terminal and gesture recognition processing method and system thereof
CN107920263A (en) * 2016-10-11 2018-04-17 杭州萤石网络有限公司 Volume adjusting method and device
CN106845378A (en) * 2017-01-03 2017-06-13 江苏慧眼数据科技股份有限公司 It is a kind of to in image recognize human body target method
US10481856B2 (en) * 2017-05-15 2019-11-19 Microsoft Technology Licensing, Llc Volume adjustment on hinged multi-screen device
CN107343076A (en) * 2017-08-18 2017-11-10 广东欧珀移动通信有限公司 Volume adjusting method, device, storage medium and mobile terminal
CN108111698A (en) * 2018-02-09 2018-06-01 上海思愚智能科技有限公司 A kind of incoming call reminding method and smart machine
CN108742668A (en) * 2018-06-28 2018-11-06 河北格物仪器设备有限公司 A kind of picture reproducer of belt profile scanning

Also Published As

Publication number Publication date
CN112235459A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US11082793B2 (en) Wearable electronic device that corrects errors where a user hears binaural sound
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN109618263B (en) Head/neck inclination angle detection method, device and system and wireless earphone controller
WO2020019820A1 (en) Microphone hole blockage detection method and related product
CN109799968A (en) Adjusting method, wearable device and the computer readable storage medium of device voice volume
CN109195058B (en) Earphone sound channel switching method, earphone sound channel switching device, terminal and storage medium
CN108111670A (en) Automatically adjust the method, apparatus and bluetooth headset of bluetooth headset volume
CN112235459B (en) Volume adjustment method, electronic device, and computer-readable storage medium
US20210099801A1 (en) Dummy Head for Electronic Calls
CN109873894B (en) Volume adjusting method and mobile terminal
CN109040427B (en) Split screen processing method and device, storage medium and electronic equipment
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
WO2016002673A1 (en) Posture control device, robot, and program
CN215898000U (en) Intelligent audio playing system based on human body state recognition
CN109345636A (en) The method and apparatus for obtaining conjecture face figure
CN111372166B (en) Intelligent left and right ear identification method and related equipment
CN110012386B (en) Volume adjusting method of terminal and terminal
CN109701272B (en) Game picture processing method and device, mobile terminal and storage medium
CN109618062B (en) Voice interaction method, device, equipment and computer readable storage medium
CN113126876A (en) Voice conversation method, device, computer equipment and storage medium
WO2021188360A1 (en) Posture detection using hearing instruments
KR20110061137A (en) Apparatus and method for controlling call volume in mobile communication terminal
WO2021103999A1 (en) Method for recognizing touch operation and wearable apparatus
CN111158493B (en) Night mode switching method and electronic equipment
EP4361774A1 (en) Display method for virtual input element, electronic device, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant