CN113422866A - Volume adjusting method and device, storage medium and electronic equipment - Google Patents

Volume adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113422866A
CN113422866A CN202110672361.0A CN202110672361A CN113422866A CN 113422866 A CN113422866 A CN 113422866A CN 202110672361 A CN202110672361 A CN 202110672361A CN 113422866 A CN113422866 A CN 113422866A
Authority
CN
China
Prior art keywords
volume
common
current
playing
environment
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
Application number
CN202110672361.0A
Other languages
Chinese (zh)
Other versions
CN113422866B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110672361.0A priority Critical patent/CN113422866B/en
Publication of CN113422866A publication Critical patent/CN113422866A/en
Application granted granted Critical
Publication of CN113422866B publication Critical patent/CN113422866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present application relates to the field of terminal technologies, and in particular, to a volume adjustment method and a volume adjustment device for an electronic device, a computer-readable storage medium, and an electronic device. The volume adjusting method comprises the following steps: acquiring an application scene where the electronic equipment is located; determining a corresponding common playing volume based on the application scene; and determining the current playing volume based on the common playing volume. The method and the device help the user to set the initial volume meeting the habit of the user in different scenes in a personalized manner, and the user can be automatically or prompted to change the volume when encountering different usual background noises in the same scene. And the user experience is improved.

Description

Volume adjusting method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a volume adjustment method, a volume adjustment device, a computer-readable storage medium, and an electronic device.
Background
At present, when a user uses a volume playing function of an electronic device, the volume initially played is often not the volume adapted by the user, and may be too high or too low. In different application scenarios, such as when playing games and when making calls, the playback volume preferred by the user is often different; or in the same application scenario, such as making a call in the bedroom and making a call on the street, the volume preferred by the user is also different. At this time, the user usually needs to adjust the volume key of the electronic device such as the mobile phone or the earphone according to the listening habit of the user, so as to set a proper volume. However, the user is affected by the volume discomfort before the volume is manually adjusted, and the experience is poor.
Disclosure of Invention
The application provides a volume adjusting method, a volume adjusting device, a computer readable storage medium and an electronic device, and further solves the problem of poor experience caused by volume discomfort to a certain extent.
According to a first aspect of the present application, there is provided a volume adjustment method including: acquiring an application scene where the electronic equipment is located; determining a corresponding common playing volume based on the application scene; and determining the current playing volume based on the common playing volume.
According to a second aspect of the present application, there is provided a volume adjustment device including: the application scene acquisition module is used for acquiring an application scene of the electronic equipment; a common play volume confirmation module, configured to determine a corresponding common play volume based on the application scenario; and the current playing volume confirming module is used for determining the current playing volume based on the common playing volume.
According to a third aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the volume adjustment method described above.
According to a fourth aspect of the present application, there is provided an electronic device comprising a processor; a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the volume adjustment method described above.
In the technical solutions provided in some embodiments of the present application, a corresponding common play volume is determined based on an application scene where the electronic device is located, and then a current play volume is determined based on the common play volume. According to the technical scheme, when the user is in different application scenes, the electronic equipment can automatically set the appropriate playing volume for the user.
In the technical solutions provided in other embodiments of the present application, based on the obtained application scenario where the electronic device is located and the current environment volume, a volume parameter value corresponding to the application scenario in a volume library is called, and the current playing volume is determined according to the volume parameter value and the current environment volume. According to the embodiments of the application, only the application scene and the environment volume where the electronic equipment is located need to be acquired, and a more accurate and appropriate playing volume can be obtained. Therefore, the method and the device are helpful for helping the user to set the initial volume which is in line with the habit of the user under different environments and scenes in a personalized manner. In some embodiments of the application, the volume discomfort can be effectively reduced, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1a shows a schematic structural diagram of an electronic device involved in a volume adjustment scheme applied in an embodiment of the present application;
fig. 1b shows another schematic structural diagram of an electronic device related to a volume adjustment scheme suitable for use in the embodiments of the present application;
fig. 2 schematically shows a flow chart of a volume adjustment method according to an exemplary embodiment of the present application;
fig. 3 schematically shows a flow chart of a volume library construction process according to an exemplary embodiment of the present application;
fig. 4 schematically shows a flow chart of a volume adjustment method according to an exemplary embodiment of the present application;
fig. 5 schematically shows a flow chart of a volume adjustment method according to another exemplary embodiment of the present application;
fig. 6 schematically shows a flow chart of a volume adjustment method according to another exemplary embodiment of the present application;
fig. 7 schematically shows a flow chart of a volume adjustment method according to another exemplary embodiment of the present application;
fig. 8 schematically shows a flow chart of a volume adjustment method according to another exemplary embodiment of the present application;
FIGS. 9a and 9b schematically illustrate a display interface diagram of an electronic device in an exemplary embodiment of the present application;
fig. 10 schematically shows a block diagram of a volume adjustment device provided in an embodiment of the present application;
fig. 11 is a block diagram schematically illustrating an electronic device according to an embodiment of the present application, configured to execute a volume adjustment method according to an embodiment of the present application;
fig. 12 schematically shows a storage unit for storing or carrying program codes for implementing a volume adjustment method according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the subject application, example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present application.
Furthermore, the drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, all the following terms "first", "second" and "third" are used for distinguishing purposes only and should not be construed as limiting the content of the present application.
Fig. 1a shows a schematic diagram of a device involved in the volume adjustment scheme of the embodiment of the present application.
Referring to fig. 1a, the electronic device 100 may be a device to be adjusted in volume, that is, the electronic device 100 executes the volume adjustment scheme described in the present application. The electronic device 100 may include, but is not limited to, a cell phone, a tablet, a smart wearable device such as a smart watch, and the like.
The electronic device 100 may be controlled to adjust the playback volume suitable for the user. The electronic device 100 may be a mobile phone, a tablet computer, a personal computer, a smart wearable device such as a smart watch, and the like, which is not limited herein. It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. Thus, the make, model, and interface displays of the electronic device 100 in FIG. 1a are merely illustrative. The electronic device 100 may have any type, model and interface display according to actual needs.
Fig. 1a also shows a volume adjustment scheme applied to the embodiment of the present application when the electronic device 100 is in the sound play-out state in the implementation of the present application.
Fig. 1b shows another schematic diagram of the electronic device 100 according to the volume adjustment scheme applied to the embodiment of the present application.
Referring to fig. 1b, the electronic device 100 may be any electronic device in the technical field, and may be configured as an electronic device with a physical volume key or an electronic device without a physical volume key. The electronic device 100 may perform the volume adjustment scheme alone without any external device.
Referring to fig. 1b, it should be noted that the electronic device 100 may be connected to an external device, for example, to the earphone 200, and the earphone 200 may be a wired earphone or a wireless earphone. The wireless headset 200 establishes a communication link according to a wireless communication protocol commonly supported by the wireless headset and the electronic device in advance, and then the electronic device transmits audio data to the wireless headset through the communication link so that the wireless headset 200 can play audio. The wireless communication protocol may include a WLAN protocol, a bluetooth protocol, a ZigBee protocol, or the like. After the earphone 200 is connected to the electronic device 100, the volume adjustment scheme can be independently completed directly on the earphone 200.
Still referring to fig. 1b, the electronic device 100 and the earphones 200 may jointly execute the volume adjustment scheme described in the present application, and the electronic device 100 may be connected to one earphone 200 to perform data interaction with the connected earphone 200, or may be connected to two earphones 200 to perform data interaction with the connected earphones 200, respectively, which is not limited herein. It should be noted that the electronic device 100 may also be directly connected to a wired headset to complete the volume adjustment scheme of the present application, or may be connected to different types of wired headsets or different types of wireless headsets in an adaptive manner to complete the volume adjustment scheme through mutual communication, which is not described herein again.
It should be noted that, the "application scenario" mentioned in the present application refers to an interaction state or a use state between the user and the electronic device 100, and may also be interpreted as a function being opened or used when the user uses the electronic device 100, and may also be interpreted as an app (application) application being opened and used by the user. As a more specific example, the application scenario may be a scenario in which the user uses the electronic device 100 to play a game, make a phone call, listen to music, watch a video, and so on.
According to some embodiments of the present application, it is required to acquire the category of the application scenario where the electronic device 100 is located. The scheme for the electronic device 100 to obtain the Application scenario may be implemented by monitoring a bottom layer key event, and the specific monitoring process may be implemented by monitoring a system Application program data editing Interface (API) related to hardware operation through a kernel, and when it is monitored that a kernel event occurs, system API call occurs, and then analyzing hardware usage information to obtain Application scenario information. The detection content may be a click or trigger operation of a user on a certain APP (application or application), or may be information of an application scene obtained by scanning a display interface of the electronic device 100 to perform real-time monitoring. Various methods for acquiring the application scenario by the electronic device 100 are not described herein.
Details of the present solution are set forth below by taking an electronic device as an example to implement the volume adjustment method according to the exemplary embodiment of the present application, wherein the electronic device corresponds to the above-explained definitions and can be configured in the form of the electronic device shown in fig. 1a and 1 b.
Fig. 2 schematically shows an exemplary embodiment of the present application.
S201: acquiring an application scene where the electronic equipment is located;
as a manner, the first application scenario mentioned in this embodiment does not refer to a certain application scenario specifically, and may be any application scenario. Several definitions and possible kinds of the application scenarios have been explained above and will not be described further. The electronic device 100 may know the application scene through a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and the like.
S202: determining a corresponding common playing volume based on the application scene;
after determining the current application scene in step S201, according to the obtained information or data characteristics of the application scene, a most suitable common playing volume is matched for the user through internal operation of the electronic device 100. It should be noted that the operation may be performed in various manners, that is, various data processing manners that can be performed in an electronic device well known in the electronic industry.
S203: determining a current playing volume based on the common playing volume;
after step S201, if the electronic device 100 determines that the common playing volume is the most suitable volume at present through the processor, that is, the common playing volume is directly determined as the current playing volume, and if it is determined that the common playing volume is not the most suitable volume, the common playing volume is determined as the current playing volume after adjustment.
In some embodiments of the present application, the electronic device may form a volume database by collecting volume data that is used by a user, where an application scenario and a common playing volume are in a one-to-one correspondence relationship in the volume database. Once the application scene where the electronic device 100 is located is acquired, the common playing volume can be matched according to the data in the volume database. The volume database is constructed, so that more accurate automatic adjustment and matching can be realized, or a user can select whether to automatically adjust and match the volume.
In some possible embodiments, in the electronic device 100 that has built the volume database, if the user is occasionally exposed to the ambient sound that is very different from the previous situation when the user is exposed to a specific application scenario, the electronic device 100 may further automatically adjust or prompt the user to adjust the commonly used playback volume in the volume database to the current playback volume that is most comfortable for the user in the current environment according to the ambient sound volume.
Fig. 3 schematically shows a flow chart of a volume library construction process according to an exemplary embodiment of the present application. Referring to fig. 3, in some embodiments, before implementing the volume adjustment scheme, a volume library is first established in the electronic device 100 system. The volume library establishing method can comprise the following steps:
s301: when the terminal is in the first application scene, the commonly used playing volume of the electronic device 100 and the corresponding commonly used environment volume are obtained.
When the electronic device 100 is in any application scene a, the playing volume C frequently used when the user is in a certain environment volume for many times and a certain application scene is opened, that is, the commonly used playing volume C, is obtained. The common play volume C may be a habitual use volume adjusted by the user, or a habitual use volume initially set by the electronic device and used by the user without being adjusted by the user. When the electronic device 100 is in the same application scene a, the playing volume of the user is obtained multiple times. The user adjusts or uses the adapted playing volume for multiple times, that is, the playing volume that the user is most used to when the scenario a is applied, that is, the commonly used playing volume C mentioned in this embodiment. In this process, the electronic device 100 may simultaneously acquire or collect the ambient volume when the electronic device is in the usage scenario a, the electronic device 100 may acquire or collect the ambient volume each time the electronic device is in the application scenario a, or the ambient volume may be collected after the common play volume C is determined. In summary, when the electronic device 100 is in the application scenario a, the common playing volume C of the user and the common environment volume B corresponding to the user using the common playing volume C can be obtained through multiple times of obtaining, recording and determining.
For a clearer explanation of the common playback volume C and the common environment volume B, the following explanation is performed after substituting the specific electronic device 100, the application scene, and the surrounding environment: when a user uses the electronic device 100 to perform a voice call, the user may prefer different playing volumes in the three environments with significantly different background noises, such as in the office, the subway, and the street. The electronic device 100 records and acquires the voice data from the memory through the processor, and in 100 voice calls, 90 times of users are in the environment of an office with background noise of 40 decibels generally, and in 90 times of calls made in the office, the volume of the electronic device 100 is adjusted to be the maximum volume reduced by two gears. In this embodiment, the application scenario is "call," and the "maximum volume is reduced by two steps" when the volume is commonly played, and the volume in the commonly used environment is "40 db".
S302: and determining a volume parameter value corresponding to the first application scene based on the common playing volume and the common environment volume.
As one way, according to step S301, any application scene has a corresponding common playback volume and a common environment volume, and the common playback volume C and the common background volume B are also in one-to-one correspondence. For a clearer description of the mapping relationship, two values of the common playback volume C and the common environment volume B corresponding to each other are collectively referred to as a volume parameter value. The volume parameter value well expresses a layer of meaning: in a general, standard, and normal case, the electronic device 100 implements a parameter volume on the side. The volume parameter value contains two values, namely, the common playing volume C and the common environment volume B, and the playing volume automatically adjusted by the user and the value formed by the user, namely, the surrounding environment where the electronic device 100 is located, are different according to the use habits of different users, so the volume parameter value is a customized setting in the embodiment of the present application.
For any desired scene that exists in the electronic device 100 but has been triggered or used only once by the user, the volume parameter value is determined according to the application scene and the playback volume of the single time.
S303: recording a plurality of volume parameter values corresponding to the electronic device 100 in a plurality of application scenes.
In some embodiments, the electronic device 100 does not merely record any application scenario, but rather retrieves and stores, via the processor and the memory, a plurality of volume parameter values corresponding to a plurality of application scenarios. Of course, there is no limitation on some application scenarios that exist in the electronic device 100, but that the user never triggers or uses.
S304: and constructing a volume library based on the plurality of volume parameter values.
When the electronic device 100 obtains a plurality of volume parameter values, a volume database is constructed. As shown in the following figure, the one-to-one correspondence between the application scene, the environment volume and the playing volume can be clearly understood according to the schematic diagram of the volume library in table 1. In some of these embodiments, assume that the electronic device 100 is in the application scenario An, the volume parameter value is (Bn, Cn).
TABLE 1 sound volume library
Figure BDA0003119879540000091
After the volume library is established, the electronic device 100 may perform some volume adjustment schemes.
Fig. 4 schematically shows a flow chart of a volume adjustment method according to an exemplary embodiment of the present application. Referring to fig. 4, in some embodiments, the volume adjustment scheme for the electronic device 100 includes the following steps:
s401: and acquiring the application scene and the current environment volume of the electronic device 100. The electronic device 100 acquires application scene information where it is located, and acquires ambient environment information where it is located. The manner in which the electronic device 100 obtains the application context information thereof is described in detail in the above statements and is not repeated.
In one embodiment, the electronic apparatus 100 may have a sound pickup device built therein, and the sound volume of the environment around the electronic apparatus 100 may be detected by the built-in sound pickup device. For example, the electronic device 100 may have a built-in microphone, and the built-in microphone may detect the volume of ambient sound in the environment where the electronic device 100 is located. As still another mode, a sound pickup device may be built in the earphone communicatively connected to the electronic apparatus 100, and the sound volume of the environment in which the earphone is located may be collected by the built-in sound pickup device, and the collection result may be transmitted to the electronic apparatus 100 as the sound volume of the environment around the electronic apparatus 100. For example, a microphone may be built in the headset, and the built-in microphone may collect the ambient sound volume of the environment where the headset is located, and transmit the collection result to the electronic device 100 as the ambient sound volume around the electronic device 100.
S402 calls a corresponding volume parameter value from the volume library based on the application scenario. The detailed method for establishing the volume library in some embodiments has been discussed in detail above, and is not described herein again. Based on the one-to-one correspondence between the application scenario and the volume parameter value in the volume library, the electronic device 100 may call the corresponding volume reference value according to the application scenario information.
S403 determines the current playback volume based on the volume parameter value and the current ambient volume. In some embodiments described in more detail, based on the volume parameter value and the current ambient volume, the electronic device 100 can determine whether the volume of the commonly used playing volume needs to be adjusted, increased or decreased, or to what extent, so as to determine the current playing volume.
In summary, in some embodiments of the present application, the electronic device 100 may acquire an application scene state in which the electronic device 100 is currently located, acquire a current ambient volume in which the electronic device 100 is located, call corresponding volume parameter values (including a common playback volume and a common ambient volume) from a volume library based on the acquired application scene information, and determine a playback volume of the electronic device 100 based on the volume parameter values and the acquired current ambient volume. For further example, determining the playback volume of the electronic device 100 may be: and adjusting to any volume or not, and increasing or decreasing.
In some embodiments, the volume parameter values include a common playing volume and a common environment volume, that is, the current playing volume may be determined based on the common playing volume and the current background volume, or the current playing volume may be determined based on the application scene type, the common environment volume, and the current environment volume.
Fig. 5 schematically shows a flow chart of a volume adjustment method according to another exemplary embodiment of the present application, which specifically illustrates the following steps performed by the electronic device 100 when determining the current playback volume based on the commonly used playback volume and the current ambient volume:
s510: detecting the current volume of the environment in which the electronic device 100 is located;
s520: if the current environment volume is within the preset threshold range, determining the common playing volume as the current playing volume;
s530: if the current environment volume is larger than the maximum value of the preset threshold range, the current playing volume is confirmed to be larger than the common playing volume;
s540: and if the current environment volume is smaller than the minimum value of the preset threshold range, determining that the current playing volume is smaller than the common playing volume.
It should be noted that the more specific adjustment manner (such as automatic adjustment, manual volume key adjustment or interface click adjustment) and the adjustment difference (the difference between the current playing volume and the commonly used playing volume) are not specifically limited.
As a practical way, in order to ensure comfortable volume and healthy in-ear at the same time, the threshold value may be set according to the standard range of human health noise. A noise level of 30-40 db is a relatively quiet normal environment; exceeding 50 db affects sleep and rest. Due to insufficient rest, fatigue cannot be eliminated, and normal physiological functions can be influenced to a certain extent; conversation is interfered by more than 70 decibels, so that the mind and the spirit are not concentrated, the working efficiency is influenced, and even accidents occur; a noisy environment, working for a long time or living above 90 db, can seriously affect hearing and cause other diseases. Thus, the preset threshold range may be set to 30-40 decibels. If the current environment volume is less than 30 decibels, the current playing volume is increased to a level greater than the conventional playing volume; if the current environment volume is more than 40 decibels, reducing the current playing volume to a level less than the conventional playing volume; and if the current environment volume is between 30 and 40 decibels, directly determining the current playing volume to be the normal playing volume. In such an embodiment, the reason for directly adjusting the volume to 30-40 db is not provided, and the hearing health level of each person is different, so that the user can be better provided with a personalized volume playing setting by using the common playing volume as a reference value.
Fig. 6 is a flowchart specifically illustrating the following steps performed by the electronic device 100 when determining the current playback volume based on the common background volume and the current ambient volume:
s610: detecting the current volume of the environment in which the electronic device 100 is located;
s620: if the current environment volume is equal to the common environment volume, determining the current playing volume as the common playing volume;
s630: if the current environment volume is larger than the common environment volume, determining that the current playing volume is larger than the common playing volume;
s640: and if the current environment volume is less than the common environment volume, determining that the current playing volume is less than the common playing volume.
Fig. 7 schematically shows a flowchart of a volume adjustment method according to another exemplary embodiment of the present application, and the embodiment shown in fig. 7 adds some steps on the basis of the embodiment shown in fig. 6, so that the volume adjustment method is more intelligent, and the user experience is improved. And if the current environment volume is greater than the conventional environment volume, determining that the current playing volume is greater than the conventional playing volume. The method can also comprise the following steps:
s720: calculating the difference value between the current environment volume and the conventional environment volume;
s730: if the difference value between the current environment volume and the common environment volume is smaller than a preset threshold value, determining the current playing volume as a first volume;
s740: and if the difference value between the current environment volume and the common environment volume is larger than a preset threshold value, determining the current playing volume as a second volume.
It should be noted that the first volume and the second volume are both greater than the common playing volume, and the first volume is smaller than the second volume. The values of the first volume and the second volume may also be used as preset thresholds with specific reference to the human health noise standard. In summary, the current playback volume is set according to a value at which the current ambient volume is greater than the common playback volume. In this embodiment, the electronic device 100 further automatically adjusts according to the real-time ambient environment or manually adjusts according to the real-time ambient environment based on the volume library, so as to capture and output the broadcast volume with the best user experience.
Fig. 8 is a flowchart schematically illustrating a volume adjustment method according to another exemplary embodiment of the present application, and fig. 8 is the same as the embodiment illustrated in fig. 7 in that steps are added based on fig. 6, and accordingly, the volume adjustment method is more intelligent, and the user experience is improved. If the current environment volume is smaller than the conventional environment volume, and the current playing volume is determined to be smaller than the conventional playing volume, the method specifically comprises the following steps:
s820: calculating the difference value between the current environment volume and the conventional environment volume;
s830: if the difference value between the current environment volume and the common environment volume is smaller than a preset threshold value, determining the current playing volume as a third volume;
s840: and if the difference value between the current environment volume and the common environment volume is larger than the preset threshold value, determining the current playing volume as a fourth volume.
It should be noted that the third volume and the fourth volume are both smaller than the common playing volume, and the third volume is larger than the fourth volume. The values of the third volume and the fourth volume may also be specifically referred to the standard of the noise of human health as a specific embodiment, which has been explained above by way of example, and will not be described herein again.
Fig. 9a and 9b schematically show an interface schematic of the electronic device 100 in an exemplary embodiment of the application.
Referring to fig. 9a, in some embodiments, when the electronic device 100 detects that the current ambient volume is greater than or less than the common ambient volume, the electronic device 100 is controlled to display a volume adjustment prompt interface.
In some embodiments, when the electronic device 100 detects that the current ambient volume is equal to the common ambient volume, it directly determines that the common playback volume is the current playback volume. Of course, one possible way may be to prompt the user that "you have adjusted to a comfortable volume" to let the user know the intelligent services that electronic device 100 provides for them; another possible way is not to make any prompts in order to avoid disturbing the normal use of the electronic device 100 by the user.
Referring to fig. 9b, in some embodiments, when the electronic device 100 detects that the current environment volume is greater than or less than the common environment volume, the electronic device 100 displays a volume adjustment prompt interface, and the prompt interface may further include a selection area in addition to prompt information about volume adjustment. The selection area enables different users to decide whether to automatically adjust the volume according to own preference.
On the basis of the above embodiments, in some embodiments, the interface selection area of the electronic device 100 may be set to be richer: the volume can be manually adjusted by the user; the selection area may be triggered to automatically adjust the volume by the electronic device 100; the selection area may be triggered not to make volume adjustments.
Still other embodiments show that a selection area configured to cause the electronic device 100 to automatically adjust the volume by triggering may also be provided with a volume bar. The user can drag the volume bar to adjust the volume through sliding or jumping gestures. It can be obviously perceived that adding the prompt interface and the selection area in some embodiments can better meet the requirements of different users on volume adjustment.
In some embodiments, to take into account the health in-ear requirement of the user more, the electronic device 100 may display the volume adjustment interface reminder in full screen, entering the strong reminder mode. For example, when the electronic device 100 is in a very quiet environment, the user is prompted to "quiet current environment and ask for a small volume for ear protection". For example, when the electronic device 100 is in an abnormal noisy environment, the user is prompted to "the current environment is noisy, and please step as much as possible to use the audio playing function for ear protection".
In some embodiments, after determining the current playback volume and outputting the playback volume, electronic device 100 may customize the current playback volume and automatically adjust the volume when the user knows it, when "the volume has been adjusted according to your habits" is displayed through the interface.
In other embodiments, after determining the current playing volume and outputting the playing volume, the electronic device 100 may not perform any display or prompt regardless of whether the current playing volume passes through the process of automatically adjusting the volume, so as to avoid disturbing the normal use of the application scene of the electronic device 100 by the user. For example, when a game application is opened, the user does not want to be disturbed, and the electronic device 100 may not prompt the user.
In still other embodiments, the electronic device 100 distinguishes a mode in which volume adjustment is prompted from a mode in which volume adjustment is not prompted by a preset mode based on a difference in application scenarios.
The presentation manner may be various. Such as interface prompts, flashing prompts, text prompts, animated prompts, pictorial prompts, voice prompts, vibration prompts, and the like. Different electronic devices 100 may also provide multiple options and different users may set the prompting mode according to preferences.
Referring to fig. 10, fig. 10 is a block diagram illustrating a volume adjusting apparatus according to an embodiment of the present disclosure. The volume adjustment device 300 is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 10, the hearing test device 300 includes: an application scene and background volume obtaining module 310, a volume parameter value invoking module 320, and a volume playing confirming module 330, wherein:
an application scene and background volume obtaining module 310, configured to obtain an application scene where the electronic device 100 is located and a current environment volume;
a volume parameter value retrieving module 320, configured to retrieve a corresponding volume parameter value from a volume library according to the application scenario;
and a volume playing confirmation module 330, configured to confirm a playing volume according to the volume parameter value and the current environment volume.
Since each functional module of the volume adjustment device in the embodiment of the present application is the same as that in the embodiment of the method described above, for convenience and brevity of description, the specific working processes of the device and the modules described above may refer to corresponding processes in the embodiment of the method described above, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 11, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 400 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method of adjusting volume, comprising:
acquiring an application scene where the electronic equipment is located;
determining a corresponding common playing volume based on the application scene;
and determining the current playing volume based on the common playing volume.
2. The volume adjustment method of claim 1, wherein determining the corresponding common ambient volume based on the application scenario comprises:
based on the application scene, calling a volume parameter value corresponding to the application scene from a volume library, wherein the volume parameter value comprises a common playing volume and a common environment volume.
3. The method of claim 2, wherein the determining a current playing volume based on the common playing volume comprises:
acquiring the volume of the current environment;
and adjusting the common playing volume to be the current playing volume based on the current environment volume and the common environment volume.
4. The method of claim 2, wherein before retrieving the volume parameter value corresponding to the application scene from the volume library, the method further comprises:
when the electronic equipment is in a first application scene, acquiring the common playing volume of the electronic equipment and the corresponding common environment volume;
determining a volume parameter value corresponding to the first application scene based on the common playing volume and the common environment volume;
recording a plurality of volume parameter values corresponding to the electronic equipment in a plurality of application scenes;
and constructing a volume library based on the plurality of volume parameter values.
5. The method of claim 3, wherein the adjusting the common playback volume to the current playback volume based on the current ambient volume and the common ambient volume comprises:
when the current environment volume is larger than the common environment volume, determining that the current playing volume is larger than the common playing volume;
when the current environment volume is smaller than the common environment volume, determining that the current playing volume is smaller than the common playing volume;
and when the current environment volume is equal to the common environment volume, determining the current playing volume as the common playing volume.
6. The method of claim 5, wherein the determining that the current playback volume is greater than the common playback volume when the current ambient volume is greater than the common ambient volume comprises:
when the difference value between the current environment volume and the common environment volume is smaller than a preset threshold value, determining the current playing volume as a first volume;
when the difference value between the current environment volume and the common environment volume is larger than a preset threshold value, determining the current playing volume to be a second volume;
the first volume is less than the second volume.
7. The volume adjustment method according to claim 5, wherein determining that the current playback volume is less than the common playback volume when the current ambient volume is less than the common ambient volume comprises:
when the difference value between the current environment volume and the common environment volume is smaller than a preset threshold value, determining the current playing volume to be a third volume;
when the difference value between the current environment volume and the common environment volume is larger than a preset threshold value, determining the current playing volume to be a fourth volume;
the third volume is greater than the fourth volume.
8. The volume adjustment method according to claim 5, wherein the determining a current playback volume based on the common ambient volume and the current ambient volume further comprises:
when the volume of the current environment is larger than or smaller than the volume of the common environment, controlling the electronic equipment to display a prompt interface for confirming whether the volume of the common playing is adjusted to be the current playing volume;
and when the current environment volume is equal to the common environment volume, determining the current playing volume as the common playing volume.
9. The volume adjustment method according to claim 8, wherein the prompt interface further includes a first selection area and a second selection area;
if an operation instruction for the first selection area is received, adjusting the current playing volume;
and if an operation instruction for the second selection area is received, keeping the current playing volume.
10. A volume adjustment device, comprising:
the application scene and background volume acquisition module is used for acquiring the application scene where the electronic equipment is located and the volume of the current environment;
the volume parameter value calling module is used for calling a corresponding volume parameter value from a volume library according to the application scene;
and the volume playing confirmation module is used for confirming the playing volume according to the volume parameter value and the current environment volume.
11. A computer-storable medium on which a computer program is stored, which program, when being executed by a processor, carries out a volume adjustment method as set forth in any one of claims 1 to 9.
12. An electronic device, comprising:
a processor for processing the received data, wherein the processor is used for processing the received data,
a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the volume adjustment method of any one of claims 1-9.
CN202110672361.0A 2021-06-17 2021-06-17 Volume adjusting method and device, storage medium and electronic equipment Active CN113422866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110672361.0A CN113422866B (en) 2021-06-17 2021-06-17 Volume adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110672361.0A CN113422866B (en) 2021-06-17 2021-06-17 Volume adjusting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113422866A true CN113422866A (en) 2021-09-21
CN113422866B CN113422866B (en) 2023-06-09

Family

ID=77788794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110672361.0A Active CN113422866B (en) 2021-06-17 2021-06-17 Volume adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113422866B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium
CN115665318A (en) * 2022-11-30 2023-01-31 荣耀终端有限公司 Call tone quality adjusting method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090297014A1 (en) * 2008-05-30 2009-12-03 Nelms Benjamin E System for assessing radiation treatment plan segmentations
CN108279861A (en) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 volume adjusting method, device and storage medium
CN108282575A (en) * 2018-01-31 2018-07-13 努比亚技术有限公司 Method for controlling volume, mobile terminal and computer readable storage medium
CN108521521A (en) * 2018-04-19 2018-09-11 Oppo广东移动通信有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN111930335A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Sound adjusting method and device, computer readable medium and terminal equipment
CN112965683A (en) * 2019-11-27 2021-06-15 宇龙计算机通信科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090297014A1 (en) * 2008-05-30 2009-12-03 Nelms Benjamin E System for assessing radiation treatment plan segmentations
CN108279861A (en) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 volume adjusting method, device and storage medium
CN108282575A (en) * 2018-01-31 2018-07-13 努比亚技术有限公司 Method for controlling volume, mobile terminal and computer readable storage medium
CN108521521A (en) * 2018-04-19 2018-09-11 Oppo广东移动通信有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN112965683A (en) * 2019-11-27 2021-06-15 宇龙计算机通信科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and medium
CN111930335A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Sound adjusting method and device, computer readable medium and terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium
WO2023071425A1 (en) * 2021-10-25 2023-05-04 Oppo广东移动通信有限公司 Volume control method and apparatus, and electronic device and storage medium
CN115665318A (en) * 2022-11-30 2023-01-31 荣耀终端有限公司 Call tone quality adjusting method and electronic equipment
CN115665318B (en) * 2022-11-30 2023-10-20 荣耀终端有限公司 Call tone quality adjusting method and electronic equipment

Also Published As

Publication number Publication date
CN113422866B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN110493678B (en) Earphone control method and device, earphone and storage medium
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
US9628896B2 (en) Reproducing device, headphone and reproducing method
CN102413218B (en) Method, device and communication terminal for automatically adjusting speaking tone
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN106162413A (en) The Headphone device of specific environment sound prompting pattern
CN106464998A (en) Collaboratively processing audio between headset and source to mask distracting noise
CN113422866B (en) Volume adjusting method and device, storage medium and electronic equipment
TW201820315A (en) Improved audio headset device
CN108924361B (en) Audio playing and acquisition control method, system and computer readable storage medium
CN102905028A (en) Mobile terminal prompt information regulating method and corresponding mobile terminal
EP3038255B1 (en) An intelligent volume control interface
CN106210960A (en) There is the Headphone device of local call situation affirmation mode
US11102593B2 (en) Remotely updating a hearing aid profile
WO2022252781A1 (en) Noise reduction control method, electronic device, and computer-readable storage apparatus
CN105976829A (en) Audio processing apparatus and method
CN111541966B (en) Uplink noise reduction method and device of wireless earphone and wireless earphone
CN113949956A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
KR101659410B1 (en) Sound optimization device and method about combination of personal smart device and earphones
WO2020019844A1 (en) Speech data processing method and related product
WO2023093113A1 (en) Mode switching method and apparatus, and audio playing device and computer-readable medium
CN114710730A (en) Volume prompting method and device, earphone and storage medium
CN113660599B (en) Speaker control method and device, mobile terminal and storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and 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