CN114827337A - Volume adjustment method, device, equipment and storage medium - Google Patents
Volume adjustment method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114827337A CN114827337A CN202110070018.9A CN202110070018A CN114827337A CN 114827337 A CN114827337 A CN 114827337A CN 202110070018 A CN202110070018 A CN 202110070018A CN 114827337 A CN114827337 A CN 114827337A
- Authority
- CN
- China
- Prior art keywords
- value
- gain value
- volume
- target
- user
- 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.)
- Granted
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the application discloses a volume adjusting method, a device, equipment and a storage medium, which relate to the technical field of terminals, and the method comprises the following steps: acquiring an initial gain value, wherein the initial gain value is a gain value corresponding to the current volume value of the terminal equipment; determining a target gain value based on a difference value between the initial gain value and a reference gain value, wherein the reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is a gain value corresponding to a volume value with the use frequency greater than a target threshold value; and adjusting the current volume value to a numerical value corresponding to the target gain value. In the embodiment of the application, the volume is quickly adjusted to a numerical range expected by a user by referring to the buried point data of the previous user common volume and considering the difference between the current volume value and the user common volume value, so that the pertinence of operation is enhanced, and the user experience is improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting volume.
Background
The current intelligent device can adjust the volume in a voice operation mode. For example, after a user sends a voice command, the intelligent device can recognize the voice command, judge the intention of the user through semantic understanding, and when the user wants to adjust the volume, the intelligent device can spontaneously adjust the volume.
However, in the above method for adjusting the volume, after recognizing the instruction for adjusting the volume sent by the user, the smart device only adjusts the volume up or down according to the command word in the voice instruction; sometimes when the sound is very small, the sound is still very small after the volume is turned up once; sometimes, when the sound is loud, the sound is still loud after the volume is turned down once. Therefore, the volume adjustment method is difficult to adjust the volume to the range expected by the user at one time, the user needs to adjust the volume for multiple times, the adjustment operation is not targeted, and the process is complicated.
Disclosure of Invention
The embodiment of the application discloses a volume adjustment method, a volume adjustment device, volume adjustment equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a method for adjusting volume, where the method includes the following steps: acquiring an initial gain value, wherein the initial gain value is a gain value corresponding to the current volume value of the terminal equipment; determining a target gain value based on a difference value between the initial gain value and a reference gain value, wherein the reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is a gain value corresponding to a volume value with the use frequency greater than a target threshold value; and adjusting the current volume value to a numerical value corresponding to the target gain value.
According to the method, the specific numerical value or range of the volume which is frequently used by the user is presumed by referring to the volume value which is frequently used by the user, so that the current volume value is adjusted to the numerical value expected by the user or the expected numerical range at one time, the user does not need to send a voice instruction for adjusting the volume to the equipment for many times, the pertinence of operation is enhanced, and the user experience is improved.
In an optional implementation manner, the determining a target gain value based on the difference between the initial gain value and the reference gain value includes the following steps: determining the target gain value as a first value if the initial gain value is less than the reference gain value, the difference between the first value and the reference gain value being less than a first threshold; determining the target gain value as a second value if the initial gain value is not less than the reference gain value, the difference between the second value and the initial gain value being less than a second threshold; or, in case the initial gain value is greater than the reference gain value, determining the target gain value as a third value, the difference between the third value and the reference gain value being smaller than a third threshold; determining the target gain value as a fourth value if the initial gain value is not greater than the reference gain value, the fourth value differing from the initial gain value by less than a fourth threshold.
It should be understood that, in the actual volume adjustment process, the user may adjust the volume value of the terminal device up or down through a voice instruction. For example, assuming that the minimum value of the gain values corresponding to the common volume of the user is V1 and the maximum value is V2, the range of the common volume of the user may be determined as the interval [ V1, V2 ]. When the user feels that the current volume is too small and wants to turn the volume up, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the magnitude relation between the lower limit value a (the reference increment value at this moment) of the volume commonly used by the user and the gain value Vn corresponding to the current volume value; when Vn is smaller than V1, V1 may be determined as the target gain value, or a value close to the magnitude of V1 (which should be larger than Vn) may be determined as the target gain value; when Vn is greater than V1, in this case, whether Vn is in the interval [ V1, V2] or Vn is greater than V2, a value obtained by increasing Vn by a fixed value (for example, adding 1 or adding 2) is determined as the above target gain value. Similarly, when the user feels that the current volume is too large and wants to adjust the volume to be small, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the magnitude relation between the lower limit value b of the volume commonly used by the user (at this time, b is the reference increment) and the gain value before the gain value Vn corresponding to the current volume value; when Vn is greater than V2, V2 may be determined as the target gain value, or a value close to the magnitude of V2 (which should be smaller than the value of Vn) may be determined as the target gain value; when Vn is smaller than V2, in this case, whether Vn is in the interval [ V1, V2] or Vn is smaller than V1, a value obtained by decreasing Vn by a fixed value (for example, by 1 or by 2) is determined as the above-mentioned target gain value.
In the implementation manner, by judging the relationship between the target gain value and the gain value range corresponding to the user common volume, the common volume data of the user is utilized more reasonably, and the adjustment range of the volume is selected more pertinently and more appropriately.
In an optional implementation manner, before the adjusting the current volume value to the value corresponding to the target gain value, the method further includes: and under the condition that the target gain value is larger than a fifth value, outputting a prompt instruction, wherein the prompt instruction is used for prompting a user to protect the hearing.
It will be appreciated that excessive play-out of the device may cause damage to the hearing of the person. Therefore, in the above implementation, when the adjusted volume value may cause harm to the health of the user, the user should be reminded that the volume value may cause damage to the hearing, and the user may decide whether to adjust the volume to the volume value after receiving the prompt message.
In an optional implementation manner, the adjusting the current volume value to a value corresponding to the target gain value includes: and under the condition that the difference value between the initial gain value and the target gain value is larger than a fifth threshold value, firstly adjusting the current volume value to a volume value with a gain value corresponding to a sixth value, and then adjusting the current volume value to a volume value corresponding to the target threshold value, wherein the sixth value is larger than the initial gain value and smaller than the target gain value.
When the range of the user's usual volume is high and the current volume value is low, directly turning up the volume to the range of the user's usual volume may cause discomfort to the user. For example, when the user's common volume range is in the interval [70,90], but the current volume value is 20, if the volume is directly adjusted to 70, the user may not be able to immediately adapt to such a large volume change at a time, which affects the user experience. Thus, the above embodiment ensures that the user has enough adaptation time to adapt to a large change in volume value by establishing an intermediate transition value, such as adjusting the volume from 20 to 50 first, and then from 50 to 70 a moment later.
In an optional implementation manner, after obtaining the initial gain value, the method further includes: obtaining weakening values of wind noise and fetal noise to the listening effect of a user, wherein the weakening values are the difference values between gain values corresponding to the current volume value of the terminal equipment and the actual listening volume value of the user; said determining a target gain value based on a difference between the initial gain value and a reference gain value comprises: superposing the reference gain value and the weakening numerical value to obtain a first gain value; determining the target gain value based on a difference between the initial gain value and the first gain value.
Since the environment in which the user uses the device is not the same time, adjusting the volume based on the commonly used volume value alone does not eliminate the effect of the environmental factors well. For example, when the user is currently traveling at a high vehicle speed, the noise and wind noise caused by the high speed may have an effect on the user's listening effect, for example, the current volume of the terminal device may be 20, but the volume effect actually heard by the user may be only 15 due to the noise. At this time, if the target gain value is still obtained according to the gain value corresponding to the current volume value of the user, and the volume is adjusted according to the target gain value, the effect of the volume listened by the user may be actually weakened due to the influence of noise. Therefore, in the implementation manner, the attenuation value of the vehicle speed to the listening effect of the user can be obtained first, the attenuation value is superposed on the reference gain value, and the target gain value is obtained according to the numerical value obtained by superposition, so that the attenuation of the noise in the environment to the listening effect of the user is compensated, and the accuracy of the volume adjustment amplitude is further improved.
In an optional implementation, before determining the target gain value based on the difference between the initial gain value and the reference gain value, the method further includes: and acquiring a historical gain value, wherein the historical gain value is a gain value corresponding to a volume value used by the terminal equipment in a reference environment, the gain value corresponding to the volume value of which the use frequency is greater than the target threshold value in the historical gain value is used as the historical data, and the similarity between the reference environment and the current environment of the terminal equipment is greater than a seventh threshold value.
In the method, the volume value used by the user history is corresponding to the image of the environment where the device is located when the volume value is used, when the history data is acquired, similarity judgment is firstly carried out according to the image of the current scene and the previous scene image, and when the similarity between the image of the current scene and the previous scene image is greater than a preset threshold, the user is considered to be more likely to want to adjust the volume to the volume value corresponding to the scene image meeting the similarity threshold in the current scene. It should be understood that, since in the same scenario, the user may use too many volume values; and the same volume value can be used in different scenes, so that the scene pictures obtained by the judgment of the environmental similarity can be multiple, and the volume value corresponding to each image can be multiple, so that the obtained volume value can still determine a gain value range. In this case, the gain value range is further narrowed down based on the use frequency, so that a more accurate user-used volume range can be obtained, and therefore, the adjusted volume will be more likely to be the volume value desired by the user.
In a second aspect, an embodiment of the present application provides a device for adjusting volume, where the device includes an obtaining unit, configured to obtain an initial gain value, where the initial gain value is a gain value corresponding to a current volume value of a terminal device; a determining unit, configured to receive the initial gain value obtained by the obtaining unit, and determine a target gain value based on a difference between the initial gain value and a reference gain value, where the reference gain value is obtained based on multiple gain values in history data, and the history data is a gain value corresponding to a volume value with a usage frequency greater than a target threshold; and the adjusting unit is used for receiving the target gain value determined by the determining unit and adjusting the current volume value to a numerical value corresponding to the target gain value.
In an optional implementation manner, the determining unit is specifically configured to: determining the target gain value as a first value if the initial gain value is less than the reference gain value, the difference between the first value and the reference gain value being less than a first threshold; determining the target gain value as a second value if the initial gain value is not less than the reference gain value, the difference between the second value and the initial gain value being less than a second threshold; or, in case the initial gain value is greater than the reference gain value, determining the target gain value as a third value, the difference between the third value and the reference gain value being smaller than a third threshold; determining the target gain value as a fourth value if the initial gain value is not greater than the reference gain value, the fourth value differing from the initial gain value by less than a fourth threshold.
In an optional implementation manner, the apparatus further includes: and the prompting unit is used for outputting a prompting instruction under the condition that the target gain value is greater than a fifth value, wherein the prompting instruction is used for prompting a user to protect the hearing.
In an optional implementation manner, the adjusting unit is specifically configured to: and under the condition that the target gain value is larger than a fifth value, outputting a prompt instruction, wherein the prompt instruction is used for prompting a user to protect the hearing.
In an optional implementation, the apparatus further comprises: the compensation unit is used for acquiring weakening values of wind noise and fetal noise to the listening effect of the user, wherein the weakening values are the difference values between the gain values corresponding to the current volume values of the terminal equipment and the gain values corresponding to the volume values actually listened to by the user; the determining unit is specifically configured to receive the attenuation value obtained by the compensating unit, and superimpose the initial gain value and the attenuation value to obtain a first gain value; determining the target gain value based on a difference between the first gain value and the reference gain value.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory for storing a program; a processor for executing the program stored in the memory, the processor being configured to perform the method of the first aspect and any one of the alternative implementations when the program is executed.
In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and the computer program includes program instructions, which, when executed by a processor, cause the processor to execute the method according to the first aspect and any one of the optional implementations.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings used in the embodiments or the background art of the present application will be briefly described below.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure;
fig. 3 is an exemplary diagram of a user volume usage habit according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a volume adjustment system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described with reference to the accompanying drawings.
The terms "first" and "second," and the like in the description, claims, and drawings of the present application are used solely to distinguish between different objects and not to describe a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. Such as a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b," a and c, "" b and c, "or" a and b and c.
The embodiment of the invention provides a method, a device, equipment and a storage medium for volume adjustment, and aims to more clearly describe the scheme of the invention. The following describes some of the knowledge involved in the method, system, device and storage medium for volume adjustment provided by the embodiments of the present application.
Gain value: i.e. the corresponding value of the volume value inside the device, which is a preset value written by the audio playing device during development.
Data of buried points: the buried point data is obtained by adding a statistical code behind a product function code and recording the operation behavior of a user, and when the user performs a certain operation, such as clicking a certain button, presenting a certain page and the like, the statistical code is added in a corresponding place during development, and a log record is generated by the buried point.
Similarity: similarity is the similarity of two things. Generally, the distance between the features of the objects is calculated, and if the distance is small, the similarity is large; if the distance is large, the similarity is small. Algorithms for calculating the similarity between objects generally include euclidean distance algorithms, manhattan distance algorithms, and the like.
At present, the volume of the intelligent device can be adjusted through voice, and compared with manual adjustment, the voice adjustment mode is simpler and more convenient to operate to some extent. However, the existing methods for adjusting the volume through voice commands are all mechanical execution inherent operations, and are not combined with the use habits and use environments of users. For example, the intelligent device adjusts the volume after recognizing a command for adjusting the volume sent by the user, and sometimes when the sound is small, the sound is still small after the volume is increased once; sometimes, when the sound is loud, the sound is still loud after the volume is turned down once. Therefore, the volume adjustment method is difficult to adjust the volume to the range expected by the user at one time, the user needs to adjust the volume for multiple times, the adjustment operation is not targeted, and the process is complicated. The original volume adjustment operation is a simpler operation, and most of the time, a user can perform the operation in a hardware key mode. The convenience of voice adjustment is also compromised if the user's expectations cannot be quickly adjusted.
In view of the above disadvantages of the existing methods, the embodiments of the present application provide a volume adjustment method, which quickly adjusts the volume to a value range expected by a user by referring to the buried point data of the previous user's common volume and considering the difference between the current volume value and the user's common volume value, thereby enhancing the pertinence of operations and improving the user experience.
Next, a flow chart of a volume adjustment method according to an embodiment of the present application will be described, referring to fig. 1.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
101. an initial gain value is obtained.
The terminal equipment acquires an initial gain value. The terminal device may be an electronic device with a media playing function or a communication function, such as a mobile phone, a vehicle-mounted terminal, a tablet, a wearable device, and the like, and the initial gain value is a gain value corresponding to a volume value currently used by the terminal device. It should be understood that the volume value displayed on the terminal device actually represents a level of the volume, and when the terminal device is processed internally, the volume value actually corresponds to a gain value, which is a preset value that has been specified when the audio playing device is developed, that is, in a module in which the terminal device is responsible for audio playing, the volume value actually represents a gain value, each gain value with different values corresponds to a volume level when being output, and the value of the volume level is a value of the volume that the terminal device presents to the user.
In an optional manner, before step 101, the terminal device is further responsible for receiving a voice instruction, where the voice instruction is a voice message sent by a user. After receiving the voice command, the terminal device carries out semantic understanding on the voice command to judge the intention of the user; when the terminal device determines that the user wishes to adjust the volume through semantic understanding, the above step 101 is executed.
102. A target gain value is determined based on a difference between the initial gain value and the reference gain value.
The reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is the gain value corresponding to the volume value with the use frequency larger than the preset threshold value. The range of volume values often used by different users may also vary due to different living environments and different hearing situations of different users. For example, if a user often needs to travel on a noisy urban road due to work, the volume value range commonly used by the user may be higher; whereas, assuming that the user is a student and is often using the device to communicate or listen to songs on a relatively quiet campus, the volume range in which it is often used may be relatively low. It should be understood that the above "usage frequency is greater than the preset threshold" refers to that when the usage duration of a certain volume value of the device (such as the total duration of music or call played by the user at the volume value) is greater than a preset percentage of the usage duration of all volume values, the volume can be regarded as the frequently used volume value of the user. Obviously, the volume value satisfying such a condition is more than one, so that the gain value corresponding to the common volume of the user may also be determined as an interval range, and in the subsequent operation, the target gain value may be determined according to the specific requirements of the user (for example, whether the user wants to turn up or down the volume), the gain value corresponding to the current volume value of the terminal device, and the interval range.
In an alternative manner, assuming that the minimum value of the common volume of the user among the corresponding gain values in the device is V1 and the maximum value is V2, the range of the common volume of the user (i.e., the above-mentioned range) may be determined as the interval [ V1, V2 ]. When the user feels that the current volume is too small and wants to turn the volume up, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the magnitude relation between the lower limit value a of the volume commonly used by the user (at this moment, a is the reference gain value) and the gain value before the gain value Vn corresponding to the current volume value; when Vn is smaller than V1, V1 may be determined as the target gain value, or a value close to the magnitude of V1 (which should be larger than Vn) may be determined as the target gain value; when Vn is greater than V1, in this case, whether Vn is in the interval [ V1, V2] or Vn is greater than V2, a value obtained by increasing Vn by a fixed value (for example, adding 1 or adding 2) is determined as the above target gain value. Similarly, when the user feels that the current volume is too large and wants to adjust the volume to be small, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the magnitude relation between the lower limit value b of the volume commonly used by the user (at this time, b is the reference increment) and the gain value before the gain value Vn corresponding to the current volume value; when Vn is greater than V2, V2 may be determined as the target gain value, or a value close to the magnitude of V2 (which should be smaller than the value of Vn) may be determined as the target gain value; when Vn is smaller than V2, in this case, whether Vn is in the interval [ V1, V2] or Vn is smaller than V1, a value obtained by decreasing Vn by a fixed value (for example, by 1 or by 2) is determined as the above-mentioned target gain value.
103. And adjusting the current volume value to a numerical value corresponding to the target gain value.
After the target gain value is obtained, the terminal device adjusts the current volume value to a value corresponding to the target gain value.
According to the embodiment of the application, the specific numerical value or range of the volume which is frequently used by the user is presumed by referring to the volume value which is frequently used by the user, so that the current volume value is adjusted to the numerical value or range expected by the user at one time, the user does not need to send a voice instruction for adjusting the volume to the equipment for many times, the pertinence of operation is enhanced, and the user experience is improved.
Based on the volume adjustment method shown in fig. 1, another more detailed flow chart of the volume adjustment method is provided in the present application, and the method considers the usage environment of the device and the influence of the volume value on the listening health status of the user, thereby further improving the user experience. Please refer to fig. 2.
Fig. 2 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:
201. and collecting a voice instruction of a user.
The terminal device receives a voice instruction of a user, and the terminal device can be an electronic device with a media playing function or a communication function, such as a mobile phone, a vehicle-mounted terminal, a tablet, a wearable device and the like, and the voice instruction is a voice message sent by the user. After receiving the voice command, the terminal device carries out semantic understanding on the voice command to judge the intention of the user; when the terminal device determines that the user wishes to adjust the volume through semantic understanding, the terminal device further performs step 202.
202. And judging the intention of the user.
Because the adjustment of the volume is divided into two conditions of turning up and turning down, after the terminal equipment receives the voice command, the terminal equipment further judges the voice command and distinguishes whether the user wants to turn up or turn down the volume at the moment.
203. And taking the minimum value in the historical data as a reference gain value.
When the terminal device judges that the playing volume of the device at the moment is too small and the user wants to turn the volume up through semantic understanding, the minimum value in the historical data is used as a reference gain value. The historical data is a gain value corresponding to a volume value with the use frequency larger than a preset threshold value. It should be understood that the above "usage frequency is greater than the preset threshold" refers to that when the usage duration of a certain volume value of the device (such as the total duration of music or call played by the user at the volume value) is greater than a preset percentage of the usage duration of all volume values, the volume can be regarded as the frequently used volume value of the user.
204. The maximum value in the history data is taken as a reference gain value.
When the terminal device judges that the user feels that the playing volume of the device is too large at the moment through semantic understanding, and the maximum value in the historical data is used as a reference gain value after the volume is expected to be turned down. The historical data is a gain value corresponding to a volume value with the use frequency larger than a preset threshold value. Similarly, the term "usage frequency is greater than the preset threshold" refers to that when the usage duration of a certain volume value (for example, the total duration of music or conversation played by the user at the volume value) of the device is greater than a preset percentage of the usage duration of all volume values, the volume is considered as the frequently used volume value of the user.
It should be understood that, in the process of performing a single volume adjustment by the terminal device, step 203 and step 204 are not both performed, but only one is performed.
205. An initial gain value is obtained.
The initial gain value is a gain value corresponding to the volume value currently used by the terminal equipment. It should be understood that the volume value displayed on the terminal device actually represents the level of the volume, and when the terminal device is internally processed, the volume value actually corresponds to a gain value, which is a preset value that the audio playing device has specified when the audio playing device is developed.
206. A target gain value is determined based on a difference between the initial gain value and the reference gain value.
The reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is the gain value corresponding to the volume value with the use frequency larger than the preset threshold value. Because different users have different living environments and different hearing situations, the range of volume values often used by different users may also differ. It should be understood that the above "usage frequency is greater than the preset threshold" refers to that when the usage duration of a certain volume value of the device (such as the total duration of music or call played by the user at the volume value) is greater than a preset percentage of the usage duration of all volume values, the volume can be regarded as the frequently used volume value of the user. Obviously, more than one volume value satisfying such a condition is provided, and thus the gain value corresponding to the user's common volume may also be determined as an interval range. In the subsequent operation, the target gain value may be determined according to the specific requirement of the user (for example, whether the user wants to turn up or down the volume), the gain value corresponding to the current volume value of the terminal device, and the interval range.
In an alternative manner, assuming that the minimum value of the common volume of the user among the corresponding gain values in the device is V1 and the maximum value is V2, the range of the common volume of the user (i.e., the above-mentioned range) may be determined as the interval [ V1, V2 ]. When the user feels that the current volume is too small and wants to turn the volume up, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the relationship between the lower limit value a of the volume value commonly used by the user (at this time, a is the reference gain value, corresponding to step 203 in fig. 2) and the gain value before the gain value Vn corresponding to the current volume value; when Vn is smaller than V1, V1 may be determined as the target gain value, or a value close to the magnitude of V1 (which should be larger than Vn) may be determined as the target gain value; when Vn is greater than V1, in this case, whether Vn is in the interval [ V1, V2] or Vn is greater than V2, a value obtained by increasing Vn by a fixed value (for example, adding 1 or adding 2) is determined as the above target gain value. Similarly, when the user feels that the current volume is too large and wants to adjust the volume to be small, the device determines the gain value corresponding to the volume value to be output (i.e. the target gain value) by referring to the magnitude relationship between the lower limit b of the volume value commonly used by the user (at this time, b is the reference increment, corresponding to step 204 in fig. 2) and the gain value Vn corresponding to the current volume value; when Vn is greater than V2, V2 may be determined as the target gain value, or a value close to the magnitude of V2 (which should be smaller than the value of Vn) may be determined as the target gain value; when Vn is smaller than V2, in this case, whether Vn is in the interval [ V1, V2] or Vn is smaller than V1, a value obtained by decreasing Vn by a fixed value (for example, by 1 or by 2) is determined as the above-mentioned target gain value.
In an optional manner, after step 205 is executed, the terminal device further obtains a weakening value of the wind noise and the fetal noise to the listening effect of the user, where the weakening value is a difference between a gain value corresponding to the current volume value of the terminal device and a gain value corresponding to the volume value actually listened to by the user; the target gain value is determined based on the difference between the initial gain value and the reference gain value: superposing the initial gain value and the weakening numerical value to obtain a first gain value; determining the target gain value based on a difference between the first gain value and the reference gain value.
Because the environment where the user uses the device is changed at any moment, adjusting the volume according to the commonly used volume value cannot well eliminate the influence of the current environment factors. For example, when the user is currently traveling at a high vehicle speed, the tire noise and wind noise due to the high speed may have an influence on the listening effect of the user. That is, currently, the volume value of the above terminal device may be 20, but due to the influence of noise, the volume effect actually heard by the user may be only 15. At this time, if the target gain value is still obtained according to the gain value corresponding to the current volume value of the user, and the volume is adjusted according to the target gain value, the effect of the volume listened by the user may be actually weakened due to the influence of noise. Therefore, in the above implementation, the attenuation value of the vehicle speed to the listening effect of the user may be obtained first, and the attenuation value may be superimposed on the reference gain value, and the target gain value may be obtained according to the superimposed value.
In an alternative implementation, before step 206, the method further includes: and acquiring a historical gain value which is a gain value corresponding to the volume value used by the terminal equipment in a reference environment, taking the gain value corresponding to the volume value of which the use frequency is greater than the target threshold value in the historical gain value as the historical data, and enabling the similarity between the reference environment and the current environment of the terminal equipment to be greater than a preset threshold value.
In the method, the volume value used by the user history is corresponding to the image of the environment where the device is located when the volume value is used, when the history data is acquired, similarity judgment is firstly carried out according to the image of the current scene and the previous scene image, and when the similarity between the image of the current scene and the previous scene image is greater than a preset threshold, the user is considered to be more likely to want to adjust the volume to the volume value corresponding to the scene image meeting the similarity threshold in the current scene. It should be appreciated that since in a single scenario, a user may use too many volume values; and the same volume value can be used in different scenes, so that the scene pictures obtained by the judgment of the environmental similarity can be multiple, and the corresponding volume values can be multiple, so that the obtained volume values can still determine a gain value range, and the influence of the environmental factors is eliminated by the gain value range. In this case, the gain value range is further narrowed down based on the use frequency, so that a more accurate user-used volume range can be obtained, and therefore, the adjusted volume will be more likely to be the volume value desired by the user.
207. And judging whether the target gain value is larger than a first threshold value.
After acquiring the target gain value, the terminal device further determines the target gain value, and if the target gain value is greater than the first threshold, then step 208 is executed, and then step 209 is executed; otherwise, step 208 is skipped and step 209 is performed directly.
208. And outputting a prompt instruction.
The amount of sound emitted from the device may be too great and may cause damage to the hearing of a person. And under the condition that the target gain value is larger than the first threshold value, the terminal equipment outputs a prompt instruction to remind a user that the adjusted volume value possibly damages the hearing, and the user can determine whether to adjust the volume to the volume value corresponding to the target gain value after receiving the prompt information.
209. And judging whether the difference value between the target gain value and the initial gain value is larger than a second threshold value.
The terminal device further determines a difference between the target gain value and the initial gain value, and if the difference is greater than the second threshold, step 210 is executed, otherwise step 211 is executed.
210. The current volume value is adjusted to be the first volume value, and then adjusted to be the numerical value corresponding to the target gain value.
When the range of the user's common volume is high and the current volume value is low, directly turning up the volume to the range of the user's common volume may cause discomfort to the user. For example, when the user's common volume range is in the interval [70,90], but the current volume value is 20, if the volume is directly adjusted to 70, the user may not be able to immediately adapt to such a large volume change at a time, which affects the user experience. Thus, the above embodiment ensures that the user has enough adaptation time to adapt to a large change in volume value by establishing an intermediate transition value, such as adjusting the volume from 20 to 50 first, and then from 50 to 70 a moment later.
211. And adjusting the current volume value to a value corresponding to the target gain value.
After the target gain value is obtained, the terminal device directly adjusts the current volume value to a value corresponding to the target gain value.
According to the embodiment of the application, the volume of the equipment is adjusted by referring to the common volume value of the user, the volume can be quickly and accurately adjusted to a value expected by the user, the use environment of the equipment and the influence of the volume value on the listening health state of the user are considered, and the user experience is further improved.
The methods in fig. 1 and 2 determine the target gain value by referring to the user commonly used volume value range and the relationship between the current volume values, and how to select the appropriate target gain value according to the relationship between the current volume value and the user commonly used volume is particularly important for accurately adjusting the volume to the value expected by the user. Therefore, based on the methods provided in fig. 1 and fig. 2, an embodiment of the present invention provides a method for determining a target gain value, which is described below with reference to fig. 3, and please refer to fig. 3.
Fig. 3 is an exemplary diagram of a usage habit of a user's volume according to an embodiment of the present application. As shown in fig. 3, in the present embodiment, the volume of the smart device is divided into A, B, C three intervals: the interval A is the interval with very low output gain, and the corresponding gain value interval is [ A1, An]The interval of volume value is [ V ] A1 ,V An ]The audio output gain in the interval is small, and the audio output gain is suitable for being used in a quiet environment or when the quiet environment needs to be kept; the interval B is an interval with a suitable output gain, and the corresponding gain value interval is [ B1, Bn ]]The interval of volume value is [ V ] B1 ,V Bn ]The audio output gain in the interval is more suitable and is suitable for being used in a normal environment; the interval C is the interval with larger output gain, and the corresponding gain value interval is [ C1, Cn ]]The interval of volume value is [ V ] C1 ,V Cn ]The audio output gain in this interval is large, which is suitable for use in a noisy environment, and the interval may be harmful to hearing. In fig. 3, the users from (i) to (ii) represent different users, and the corresponding shaded portion behind each user represents the range of the common volume, which can represent the span of the range of the volume value and the range of the gain value corresponding to the values of the upper gain value and the volume value, for example, the corresponding range of the gain value of the common volume range of (i) the user is [ a2, An-1]]The corresponding volume value interval is [ V ] A2 ,V An-1 ]And the gain value interval corresponding to the common volume range of the user c is [ A2, Cn-1]]The corresponding volume value interval is [ V ] A2 ,V Cn-1 ]。
When a user I/O wants to turn up the volume, if the gain value Dn corresponding to the current volume value Vn is smaller than the gain value A2 corresponding to the lower limit value of the common volume value, determining the target gain value to be A2; when Dn is greater than A2, no matter whether Dn falls into the interval [ A2, An-1] \ [ A2, Bn-1] \ [ A2, Cn-1] ([ A2, An-1], [ A2, Bn-1], [ A2, Cn-1] respectively correspond to the user (r), the user (r) and the user (r), the value obtained by adding a fixed value (such as 1 or 2) to the initial gain value is determined as the target gain value. When a user wants to turn down the volume, if Dn is larger than a gain value An-1\ Bn-1\ Cn-1 corresponding to the upper limit value of the common volume value, determining the target gain value as An-1\ Bn-1\ Cn-1; if Dn is smaller than An-1\ Bn-1\ Cn-1, the value obtained by subtracting a fixed value (for example, 1 or 2) from the initial gain value is determined as the target gain value regardless of whether Dn falls into the interval [ A2, An-1] \ [ A2, Bn-1] \ [ A2, Cn-1 ].
When the user r wants to turn up the volume, if the gain value Dn corresponding to the current volume value Vn is smaller than the lower limit B1 of the gain value interval corresponding to the interval B, determining the target gain value as B1; if Dn is greater than B1 and Dn is less than the lower limit value of the common volume value corresponding to the gain value B2, determining the target gain value as B2; when Dn is greater than B2, the value obtained by adding a fixed value to the initial gain value is determined as the target gain value regardless of whether Dn falls within the interval [ B2, Bn-1] \ [ B2, Cn-1 ]. When the user wants to turn down the volume, if the gain value Dn corresponding to the current volume value Vn is larger than Bn, determining the target gain value as Bn; and if Vn is smaller than Bn and larger than Bn-1, determining the target gain value as Bn-1, and if Vn is smaller than Bn-1, determining a value obtained by subtracting a fixed value from the initial gain value as the target gain value. When the user(s) wants to turn down the volume, if Vn is greater than Cn-1, the above-mentioned target gain value is defined as Cn-1, and if Vn is less than Cn-1, the value obtained by subtracting the fixed value from the above-mentioned initial gain value is defined as the above-mentioned target gain value.
When a user wishes to adjust the volume, if the gain value Dn corresponding to the current volume value Vn is smaller than the gain value C2 corresponding to the lower limit value of the common volume value, determining the target gain value as C2; and if Dn is larger than C2, determining a value obtained by adding a fixed value to the initial gain value as the target gain value. When a user wants to turn down the volume, if Dn is larger than a gain value Cn-1 corresponding to the upper limit value of the common volume value, determining the target gain value as Cn-1; if Dn is smaller than Cn-1, the value obtained by subtracting a fixed value from the initial gain value is determined as the target gain value regardless of whether Dn falls within the interval [ A2, Cn-1 ].
According to the embodiment of the application, the volume of the intelligent device is divided into A, B, C three intervals, so that the pertinence of the device to the volume adjustment operation is further improved; on the basis that the interval B is the most used volume range in daily life, the embodiment of the present application can adjust the volume to the value expected by the user more accurately by improving the determination rule of the target gain value when the upper and lower limits of the volume commonly used by the user satisfy the specific conditions.
Next, a schematic structural diagram of a volume adjustment device according to an embodiment of the present application is described, please refer to fig. 4. As shown in fig. 4, the volume adjusting apparatus in fig. 4 may perform a method flow of volume adjustment in fig. 1 or fig. 2, where the apparatus includes:
an obtaining unit 401, configured to obtain an initial gain value, where the initial gain value is a gain value corresponding to a current volume value of a terminal device;
a determining unit 403, configured to receive the initial gain value obtained by the obtaining unit 401, and determine a target gain value based on a difference between the initial gain value and a reference gain value, where the reference gain value is obtained based on a plurality of gain values in history data, and the history data is a gain value corresponding to a volume value with a usage frequency greater than a target threshold;
an adjusting unit 405, configured to receive the target gain value determined by the determining unit 403, and adjust the current volume value to a value corresponding to the target gain value.
In an optional implementation manner, the determining unit 403 is specifically configured to: determining the target gain value as a first value in case that the initial gain value is smaller than the reference gain value, a difference between the first value and the reference gain value being smaller than a first threshold; determining the target gain value as a second value in a case where the initial gain value is not less than the reference gain value, a difference between the second value and the initial gain value being less than a second threshold; or, in the case that the initial gain value is greater than the reference gain value, determining the target gain value as a third value, wherein the difference between the third value and the reference gain value is smaller than a third threshold value; and determining the target gain value as a fourth value when the initial gain value is not greater than the reference gain value, wherein the difference between the fourth value and the initial gain value is less than a fourth threshold value.
In an optional implementation manner, the apparatus further includes: a prompting unit 404, configured to output a prompting instruction when the target gain value is greater than the fifth value, where the prompting instruction is used to prompt a user to protect hearing.
In an optional implementation manner, the adjusting unit 405 is specifically configured to: and outputting a prompt instruction when the target gain value is larger than a fifth value, wherein the prompt instruction is used for prompting a user to protect the hearing.
In an optional implementation manner, the apparatus further includes: a compensating unit 402, configured to obtain a weakening value of wind noise and fetal noise to a user listening effect, where the weakening value is a difference between a gain value corresponding to the current volume value of the terminal device and a gain value corresponding to a volume value actually listened to by the user; the determining unit 403 is specifically configured to receive the attenuation value obtained by the compensating unit 402, and superimpose the initial gain value and the attenuation value to obtain a first gain value; the target gain value is determined based on a difference between the first gain value and the reference gain value.
It should be understood that the division of each unit of the above volume adjustment device is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. For example, the above units may be processing elements which are set up separately, or may be implemented by integrating the same chip, or may be stored in a storage element of the controller in the form of program codes, and a certain processing element of the processor calls and executes the functions of the above units. In addition, the units can be integrated together or can be independently realized. The processing element may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the method or the units above may be implemented by integrated logic circuits of hardware or instructions in the form of software in a processor element. The processing element may be a general purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above method, such as: one or more application-specific integrated circuits (ASICs), or one or more microprocessors (DSPs), or one or more field-programmable gate arrays (FPGAs), among others.
Next, a schematic structural diagram of a volume adjustment system according to an embodiment of the present application is introduced, please refer to fig. 5.
Fig. 5 is a schematic structural diagram of a volume adjustment system according to an embodiment of the present application, and as shown in fig. 5, the volume adjustment system 50 includes: a voice processing module 51, an audio processing module 52, a user data module 53, a vehicle data module 54, and an image processing module 55.
The voice processing module 51 includes the following sub-modules: a voice acquisition module 511, configured to detect voice input information of a user; a semantic understanding module 512, configured to understand the voice message of the user acquired by the voice acquisition module 511, and determine an intention of the user; and the noise judgment 513 is configured to perform noise detection on the voice message of the user collected by the voice collection module 511, so as to judge the noise level in the current environment where the user is located.
The audio processing module 51 includes the following sub-modules: the gain adjusting module 521 is configured to detect a gain value corresponding to the current volume value of the device and adjust the gain value of the device; an audio output module 522 for outputting the magnitude of the volume value according to the control device provided by the gain adjustment module 521; the denoising processing module 523 is configured to perform denoising processing on the user voice acquired by the voice acquisition module 511.
The user data module 53 includes the following sub-modules: the common volume module 531 is specifically configured to store volume values and corresponding gain values of the volume values, where the previous usage frequency of the user is greater than a preset threshold.
The vehicle data module 54 includes the following sub-modules: specifically, the noise determination module 513 is configured to provide the current vehicle speed of the vehicle; specifically, the noise determination module 513 may obtain the vehicle speed information to calculate noise of the current environment (the noise is tire noise and wind noise generated when the vehicle runs, and the magnitude of the noise is directly related to the vehicle speed of the vehicle).
The image processing module 55 includes the following sub-modules: the image acquisition module 551 is used for shooting the current driving environment of the user, obtaining and storing an image representing the environmental characteristics, and corresponding the image to the currently used volume value (the corresponding relation is stored in the common volume module 531); the image recognition module 552 is configured to perform similarity determination on the currently saved image and the historically saved image.
The volume adjustment system can execute the method flow of volume adjustment as shown in fig. 1 or fig. 2. Specifically, when the voice acquisition module 511 of the voice processing module 51 detects that the user is performing voice input at the moment, the system determines the intention of the user through the semantic understanding module 512, and after determining that the user wants to adjust the volume, the noise reduction processing module 523 in the audio processing module 52 performs noise reduction processing on the voice of the user; meanwhile, the gain adjustment module 521 detects a gain value corresponding to the current volume value of the device, then calls the user's common volume data stored in the common volume module 531, and determines a target gain value based on the common volume data; then, the audio output module 522 adjusts the volume to the volume value corresponding to the target gain value.
In an alternative embodiment, if the vehicle is in a moving state at this time, the system feeds back the vehicle speed information provided by the vehicle speed signal module 541 to the noise determination module 513, and obtains the noise level in the current environment according to the vehicle speed to feed back to the gain adjustment module 521, and the gain adjustment module 521 calculates an attenuation value of the noise to the listening effect of the user according to the noise level, and superimposes the attenuation value on the target gain value.
In an alternative embodiment, before the gain adjustment module determines the target gain value, the image capturing module 551 in the image processing module 55 takes a picture of a scene where the user is located, and transmits the taken picture and a picture taken from a history stored in the image capturing module (that is, a picture taken by the image capturing module from an image of an environment where the user is located before) to the image recognition module 552, and the image recognition module 552 performs similarity determination according to an image of the current scene and an image of a previous scene, and when the similarity between the image of the current scene and the image of the previous scene is greater than a preset threshold, it may be considered that the user is more likely to want to adjust the volume to a volume value corresponding to a scene image satisfying the similarity threshold in the current scene. Then, the image recognition module 552 transmits the picture information satisfying the similarity condition to the common volume module 531, the common volume module 531 filters the stored volume data according to the picture information and the volume value corresponding thereto, and provides the filtered volume data to the gain adjustment module 521, and the gain adjustment module 521 obtains the target gain value based on the current volume value and the filtered volume data.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 60 includes a processor 601, a memory 602, and a communication interface 603; the processor 601, memory 602 and communication interface 603 are interconnected by a bus 604. The terminal device in fig. 6 may be the volume adjusting device in the foregoing embodiment.
The memory 602 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a compact read-only memory (CDROM), and the memory 602 is used for related instructions and data. The communication interface 604 is used for receiving and transmitting data, such as receiving voice commands from a user.
The processor 601 may be one or more Central Processing Units (CPUs), and in the case that the processor 601 is one CPU, the CPU may be a single-core CPU or a multi-core CPU. The steps performed by the volume adjusting device in the above embodiment may be based on the structure of the electronic device shown in fig. 6. In particular, the processor 601 may implement the functions of the units in fig. 4.
In an embodiment of the present application, there is provided another computer-readable storage medium storing a computer program which, when executed by a processor, implements: acquiring an initial gain value, wherein the initial gain value is a gain value corresponding to the current volume value of the terminal equipment; determining a target gain value based on a difference value between the initial gain value and a reference gain value, wherein the reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is a gain value corresponding to a volume value with the use frequency greater than a target threshold value; and adjusting the current volume value to a value corresponding to the target gain value.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (12)
1. A method of volume adjustment, the method comprising the steps of:
acquiring an initial gain value, wherein the initial gain value is a gain value corresponding to the current volume value of the terminal equipment;
determining a target gain value based on a difference value between the initial gain value and a reference gain value, wherein the reference gain value is obtained based on a plurality of gain values in historical data, and the historical data is a gain value corresponding to a volume value with the use frequency greater than a target threshold value;
and adjusting the current volume value to a numerical value corresponding to the target gain value.
2. The method of claim 1, the determining a target gain value based on a difference between the initial gain value and a reference gain value, comprising:
determining the target gain value as a first value if the initial gain value is less than the reference gain value, the difference between the first value and the reference gain value being less than a first threshold; determining the target gain value as a second value if the initial gain value is not less than the reference gain value, the difference between the second value and the initial gain value being less than a second threshold;
or, in case the initial gain value is greater than the reference gain value, determining the target gain value as a third value, the difference between the third value and the reference gain value being smaller than a third threshold; determining the target gain value as a fourth value if the initial gain value is not greater than the reference gain value, the fourth value differing from the initial gain value by less than a fourth threshold.
3. The method of claim 1, prior to said adjusting a current volume value to a value corresponding to said target gain value, further comprising:
and under the condition that the target gain value is larger than a fifth value, outputting a prompt instruction, wherein the prompt instruction is used for prompting a user to protect the hearing.
4. The method according to any one of claims 1 to 3, wherein the adjusting the current volume value to a value corresponding to the target gain value comprises:
and under the condition that the difference value between the initial gain value and the target gain value is larger than a fifth threshold value, firstly adjusting the current volume value to a volume value with a gain value corresponding to a sixth value, and then adjusting the current volume value to a volume value corresponding to the target threshold value, wherein the sixth value is larger than the initial gain value and smaller than the target gain value.
5. The method of any of claims 1 to 3, after obtaining the initial gain value, the method further comprising:
obtaining weakening values of wind noise and fetal noise to the listening effect of a user, wherein the weakening values are the difference values between gain values corresponding to the current volume value of the terminal equipment and the actual listening volume value of the user;
said determining a target gain value based on a difference between the initial gain value and a reference gain value comprises: superposing the reference gain value and the weakening numerical value to obtain a first gain value; determining the target gain value based on a difference between the initial gain value and the first gain value.
6. An apparatus for volume adjustment, comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring an initial gain value, and the initial gain value is a gain value corresponding to the current volume value of the terminal equipment;
a determining unit, configured to receive the initial gain value obtained by the obtaining unit, and determine a target gain value based on a difference between the initial gain value and a reference gain value, where the reference gain value is obtained based on multiple gain values in history data, and the history data is a gain value corresponding to a volume value with a usage frequency greater than a target threshold;
and the adjusting unit is used for receiving the target gain value determined by the determining unit and adjusting the current volume value to a numerical value corresponding to the target gain value.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
determining the target gain value as a first value if the initial gain value is less than the reference gain value, the difference between the first value and the reference gain value being less than a first threshold; determining the target gain value as a second value if the initial gain value is not less than the reference gain value, the difference between the second value and the initial gain value being less than a second threshold;
or, in case the initial gain value is greater than the reference gain value, determining the target gain value as a third value, the difference between the third value and the reference gain value being smaller than a third threshold; determining the target gain value as a fourth value if the initial gain value is not greater than the reference gain value, the fourth value differing from the initial gain value by less than a fourth threshold.
8. The apparatus of claim 7, further comprising:
and the prompting unit is used for outputting a prompting instruction under the condition that the target gain value is greater than a fifth value, wherein the prompting instruction is used for prompting a user to protect the hearing.
9. The apparatus according to any one of claims 6 to 8, the adjustment unit being specifically configured to:
and under the condition that the target gain value is larger than a fifth value, outputting a prompt instruction, wherein the prompt instruction is used for prompting a user to protect the hearing.
10. The apparatus of any of claims 7 to 9, further comprising:
the compensation unit is used for acquiring weakening values of wind noise and fetal noise to the listening effect of the user, wherein the weakening values are the difference values between the gain values corresponding to the current volume values of the terminal equipment and the gain values corresponding to the volume values actually listened to by the user;
the determining unit is specifically configured to receive the attenuation value obtained by the compensating unit, and superimpose the reference gain value and the attenuation value to obtain a first gain value; determining the target gain value based on a difference between the initial gain value and the first gain value.
11. An electronic device, comprising: a memory for storing a program; a processor for executing the program stored by the memory, the processor being configured to perform the method of any of claims 1 to 5 when the program is executed.
12. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110070018.9A CN114827337B (en) | 2021-01-19 | 2021-01-19 | Method, device, equipment and storage medium for adjusting volume |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110070018.9A CN114827337B (en) | 2021-01-19 | 2021-01-19 | Method, device, equipment and storage medium for adjusting volume |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114827337A true CN114827337A (en) | 2022-07-29 |
CN114827337B CN114827337B (en) | 2023-08-18 |
Family
ID=82524811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110070018.9A Active CN114827337B (en) | 2021-01-19 | 2021-01-19 | Method, device, equipment and storage medium for adjusting volume |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114827337B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015158182A1 (en) * | 2014-04-16 | 2015-10-22 | 华为技术有限公司 | Volume adjusting method, apparatus and terminal of user terminal |
WO2016145856A1 (en) * | 2015-08-20 | 2016-09-22 | 中兴通讯股份有限公司 | Volume adjusting method, wearable device, terminal device and volume adjusting system |
CN106792386A (en) * | 2016-12-05 | 2017-05-31 | 青岛海信电器股份有限公司 | A kind of terminal volume adjusting method and device |
WO2017201868A1 (en) * | 2016-05-26 | 2017-11-30 | 中兴通讯股份有限公司 | Method, apparatus and terminal for adjusting speech gain |
CN107743289A (en) * | 2017-10-25 | 2018-02-27 | 解君 | A kind of intelligent sound box control method in Intelligent household scene |
WO2018068689A1 (en) * | 2016-10-11 | 2018-04-19 | 杭州萤石网络有限公司 | Volume adjustment method and device |
CN107994879A (en) * | 2017-12-04 | 2018-05-04 | 北京小米移动软件有限公司 | Volume control method and device |
CN108647005A (en) * | 2018-05-15 | 2018-10-12 | 努比亚技术有限公司 | Audio frequency playing method, mobile terminal and computer readable storage medium |
CN109215652A (en) * | 2018-10-16 | 2019-01-15 | 深圳Tcl新技术有限公司 | Volume adjusting method, device, playback terminal and computer readable storage medium |
CN110248021A (en) * | 2019-05-10 | 2019-09-17 | 百度在线网络技术(北京)有限公司 | A kind of smart machine method for controlling volume and system |
CN209784987U (en) * | 2019-07-12 | 2019-12-13 | 四川虹美智能科技有限公司 | system for controlling output volume and intelligent household appliance |
CN112151025A (en) * | 2019-06-28 | 2020-12-29 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and storage medium |
CN112185369A (en) * | 2019-07-04 | 2021-01-05 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and medium based on voice control |
-
2021
- 2021-01-19 CN CN202110070018.9A patent/CN114827337B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015158182A1 (en) * | 2014-04-16 | 2015-10-22 | 华为技术有限公司 | Volume adjusting method, apparatus and terminal of user terminal |
WO2016145856A1 (en) * | 2015-08-20 | 2016-09-22 | 中兴通讯股份有限公司 | Volume adjusting method, wearable device, terminal device and volume adjusting system |
WO2017201868A1 (en) * | 2016-05-26 | 2017-11-30 | 中兴通讯股份有限公司 | Method, apparatus and terminal for adjusting speech gain |
WO2018068689A1 (en) * | 2016-10-11 | 2018-04-19 | 杭州萤石网络有限公司 | Volume adjustment method and device |
CN106792386A (en) * | 2016-12-05 | 2017-05-31 | 青岛海信电器股份有限公司 | A kind of terminal volume adjusting method and device |
CN107743289A (en) * | 2017-10-25 | 2018-02-27 | 解君 | A kind of intelligent sound box control method in Intelligent household scene |
CN107994879A (en) * | 2017-12-04 | 2018-05-04 | 北京小米移动软件有限公司 | Volume control method and device |
CN108647005A (en) * | 2018-05-15 | 2018-10-12 | 努比亚技术有限公司 | Audio frequency playing method, mobile terminal and computer readable storage medium |
CN109215652A (en) * | 2018-10-16 | 2019-01-15 | 深圳Tcl新技术有限公司 | Volume adjusting method, device, playback terminal and computer readable storage medium |
CN110248021A (en) * | 2019-05-10 | 2019-09-17 | 百度在线网络技术(北京)有限公司 | A kind of smart machine method for controlling volume and system |
CN112151025A (en) * | 2019-06-28 | 2020-12-29 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and storage medium |
CN112185369A (en) * | 2019-07-04 | 2021-01-05 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and medium based on voice control |
CN209784987U (en) * | 2019-07-12 | 2019-12-13 | 四川虹美智能科技有限公司 | system for controlling output volume and intelligent household appliance |
Also Published As
Publication number | Publication date |
---|---|
CN114827337B (en) | 2023-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110970057B (en) | Sound processing method, device and equipment | |
CN104954555B (en) | A kind of volume adjusting method and system | |
CN106031138B (en) | Environment senses smart machine | |
WO2017032030A1 (en) | Volume adjusting method and user terminal | |
US20060147059A1 (en) | Smart volume adjusting method for a multi-media system | |
CN108540906B (en) | Volume adjusting method, earphone and computer readable storage medium | |
CN109841214B (en) | Voice wakeup processing method and device and storage medium | |
CN107371102B (en) | Audio playing volume control method and device, storage medium and mobile terminal | |
CN112947886B (en) | Method and device for protecting hearing of user and electronic equipment | |
CN113840211A (en) | Method and device for automatically adjusting volume of Bluetooth headset and Bluetooth headset | |
CN104658536A (en) | Recording mode switching method, recording mode switching system and terminal | |
US20200106879A1 (en) | Voice communication method, voice communication apparatus, and voice communication system | |
CN110827863A (en) | Method, device and terminal for intelligently adjusting volume and readable storage medium | |
CN113038337A (en) | Audio playing method, wireless earphone and computer readable storage medium | |
CN114903473A (en) | Hearing detection method, device, electronic equipment and storage medium | |
CN106488015A (en) | Incoming call processing method and device | |
CN111988472A (en) | Method, system, medium and intelligent terminal for improving attention of user wearing earphone | |
CN113613157B (en) | Earphone and wearing state detection method and device thereof and storage medium | |
CN114827337B (en) | Method, device, equipment and storage medium for adjusting volume | |
CN103796145A (en) | Auditory sense threshold value determining method and device and hearing aid | |
CN116055976A (en) | Earphone wearing forward and backward detection method and device, earphone and storage medium | |
US11935510B2 (en) | Information processing device, sound masking system, control method, and recording medium | |
CN115460512A (en) | Sound field adjusting method and device for vehicle, vehicle and storage medium | |
CN111739493B (en) | Audio processing method, device and storage medium | |
CN109274826B (en) | Voice playing mode switching method and device, terminal and computer 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 |