Volume control method, device, electronic device and storage medium

By obtaining location information and application status on electronic devices, the volume is automatically adjusted to mute, which solves the problem of excessive volume in public places and improves user experience and privacy protection.

CN114765644BActive Publication Date: 2024-08-30GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110037219.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-12
Publication Date
2024-08-30
Estimated Expiration
2041-01-12

AI Technical Summary

Technical Problem

In public places, when users forget to bring headphones and turn on audio and video software, the volume will be too high, affecting the user experience and possibly leaking privacy.

Method used

By obtaining the location information of the electronic device, if it is in a preset location (such as public transportation, etc.), detect the running status and volume status of the target application. If it is on and not mute, adjust the audio playback mode to mute to avoid volume Too high a problem.

Benefits of technology

It effectively prevents users from being embarrassed by excessive volume, improves user experience, and reduces the impact on others and privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114765644B
    Figure CN114765644B
Patent Text Reader

Abstract

The embodiments of the present application disclose a volume control method, device, electronic device and storage medium. The method includes: obtaining the location information of the electronic device; if the location information indicates that the electronic device is at a preset location, obtaining the running state of the target application, and obtaining the volume state of the electronic device; if the running state is on, and the volume state is not in a silent state, obtaining the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjusting the volume of the electronic device to a silent state. Through this method, the electronic device can detect the change of the running state of the target application in a timely manner according to the change of its location, and then can flexibly adjust the volume state to a silent state according to the running status of the audio and video software, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from being embarrassed in public due to the excessive volume of the electronic device, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of mobile terminals, and more specifically, to a volume control method, device, electronic device and storage medium. Background Art

[0002] With the continuous optimization of smart terminal functions, more and more intelligent functions are favored by the majority of users, greatly improving the user experience. However, the volume of electronic devices (such as call volume, audio and video playback volume, etc.) still needs to be manually set by users. In some public places, if users forget to bring headphones and open audio and video software, or open audio and video software before inserting headphones, the volume of external audio and video may put users in an awkward situation, reducing user experience. Summary of the invention

[0003] In view of the above problems, the present application proposes a volume control method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a volume control method, which is applied to an electronic device, and the method includes: obtaining location information of the electronic device; if the location information indicates that the electronic device is at a preset location, obtaining the running status of a target application, and obtaining the volume status of the electronic device; if the running status is an on state and the volume status is a non-mute state, obtaining the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjusting the volume of the electronic device to a mute state.

[0005] In a second aspect, an embodiment of the present application provides a volume control method, which is applied to an electronic device, and the method includes: when a target application of the electronic device is in a running state, obtaining the location information of the electronic device; if the location information indicates that the electronic device is in a preset position, obtaining the volume state of the electronic device, and obtaining the audio playback mode of the electronic device; if the volume state is a non-mute state, and the audio playback mode is an external speaker mode, adjusting the volume of the electronic device to a mute state.

[0006] In a third aspect, an embodiment of the present application provides a volume control device that runs on an electronic device, the device comprising: a first acquisition module, used to acquire location information of the electronic device; a second acquisition module, used to acquire the running state of a target application and the volume state of the electronic device if the location information indicates that the electronic device is at a preset position; a third acquisition module, used to acquire the audio playback mode of the electronic device if the running state is on and the volume state is not mute; and a volume control module, used to adjust the volume of the electronic device to a mute state if the audio playback mode is an external speaker mode.

[0007] In a fourth aspect, an embodiment of the present application provides a volume control device that runs on an electronic device, the device comprising: a position information acquisition unit, used to acquire the position information of the electronic device when a target application of the electronic device is in a running state; a volume information acquisition unit, used to acquire the volume state of the electronic device and the audio playback mode of the electronic device if the position information indicates that the electronic device is in a preset position; and a volume control unit, used to adjust the volume of the electronic device to a mute state if the volume state is a non-mute state and the audio playback mode is an external speaker mode.

[0008] In a fifth aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of the first aspect or the second aspect above.

[0009] In a sixth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, wherein the method of the first aspect or the second aspect mentioned above is executed when the program code is run.

[0010] The present application provides a volume control method, device, electronic device and storage medium, which obtain the location information of the electronic device; if the location information indicates that the electronic device is at a preset location, obtain the running state of the target application and the volume state of the electronic device; if the running state is on and the volume state is not in a silent state, obtain the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjust the volume of the electronic device to a silent state, so that the electronic device can timely detect the change of the running state of the target application in the electronic device according to the change of its location, and then the electronic device can flexibly adjust the volume state of the electronic device to a silent state according to the running status of the audio and video software in the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation in public due to the excessive volume of the electronic device, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A method flow chart of a volume control method proposed in an embodiment of the present application is shown.

[0013] Figure 2 A method flow chart of a volume control method proposed in another embodiment of the present application is shown.

[0014] Figure 3 A method flow chart of a volume control method proposed in yet another embodiment of the present application is shown.

[0015] Figure 4 A structural block diagram of a volume control device proposed in an embodiment of the present application is shown.

[0016] Figure 5 A structural block diagram of a volume control device proposed in another embodiment of the present application is shown.

[0017] Figure 6 A structural block diagram of an electronic device for executing a volume control method according to an embodiment of the present application is shown.

[0018] Figure 7 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a volume control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] With the rapid development of mobile terminal technology, mobile terminals have become an indispensable tool in people's lives. It has brought great convenience to people's lives, work and travel. However, the inventors found in their research that the way to adjust the volume of mobile terminals is still relatively mechanical, especially in some public places. If the user is not fully prepared (for example, forgets to bring headphones) and turns on the audio and video functions of the mobile terminal, the volume of the external audio and video may put the user in an embarrassing situation, or leak the user's privacy, reducing the user experience.

[0021] Therefore, in order to improve the above-mentioned problem, the inventor has proposed the volume control method, device and electronic device provided in the present application, which enables the electronic device to timely detect the change of the running state of the target application in the electronic device according to the change of its location, and then enables the electronic device to flexibly adjust the volume state of the electronic device to a mute state according to the running status of the audio and video software in the electronic device, as well as the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation due to the excessive volume of the electronic device in public places, and improving the user experience.

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0023] See also Figure 1 An embodiment of the present application provides a volume control method, which is applied to an electronic device. This embodiment introduces controlling and adjusting the volume based on a change in the position of the electronic device as a trigger condition. The method includes:

[0024] Step S110: Acquire the location information of the electronic device.

[0025] In this embodiment, the location information of the electronic device represents the coordinate position of the electronic device, or the location area where the electronic device is located.

[0026] Optionally, the electronic device is usually provided with a GPS (Global Positioning System) module. In this case, the longitude and latitude of the electronic device collected by the GPS module can be used as the location information of the electronic device. In addition, when the electronic device is connected to a WIFI hotspot, the longitude and latitude information of the connected WIFI hotspot can also be obtained, and the longitude and latitude information of the WIFI hotspot can be used as the location information of the electronic device.

[0027] Step S120: If the location information indicates that the electronic device is at a preset location, the running state of the target application is obtained, and the volume state of the electronic device is obtained.

[0028] The preset location may be a public place at a fixed point, for example, the preset location may be "XXX subway station", "XX bus station", "XX airport", etc.; or the preset location may be a public place on a fixed route, for example, on a bus / subway / airplane heading to direction A. Optionally, in some embodiments, the preset location may also be a distance range, for example, a location area 50 meters (the specific value may not be limited) from "XXX subway station".

[0029] As a method, if the location information of the electronic device indicates that the electronic device is at a preset location, the operation status of the target application and the volume status of the electronic device can be obtained, wherein the target application includes various audio and video function applications, and the volume status of the electronic device may include a mute state or a non-mute state. Optionally, the longitude and latitude of the location of the electronic device can be compared with the longitude and latitude of a preset location (for example, subway station B). If the longitude and latitude of the location of the electronic device are the same as those of subway station B, or the longitude and latitude of the location of the electronic device differs slightly from those of subway station B (for example, less than a difference threshold, and the specific value of the difference threshold can be set according to actual conditions), then it can be determined that the current location information of the electronic device indicates that the electronic device is at a preset location.

[0030] That is, when it is detected that an electronic device has entered a preset position or has entered a certain distance range of the preset position, the operating status of the audio and video function application of the electronic device and the volume status of the electronic device can be obtained, so that the volume of the electronic device can be adjusted in time according to the changes in the position of the electronic device and the changes in the operating status of the audio and video function application, thereby improving the intelligence of the volume adjustment.

[0031] Step S130: If the running state is the on state and the volume state is not the mute state, the audio playing mode of the electronic device is obtained.

[0032] The audio playback mode of the electronic device includes playing audio through a speaker (which can be simply understood as an external speaker mode) or playing audio through headphones (which can be simply understood as a headphone mode). As a method, when it is determined that the electronic device is in a preset position, if the running state of the audio and video function application in the electronic device is turned on, and the volume state of the electronic device is not in a silent state, in order to optimize the problem of embarrassing users by playing audio and video externally in public places, the audio and video playback mode of the electronic device can be obtained.

[0033] In one implementation, an audio playback identifier may be configured to record the current volume playback mode, and different values ​​of the audio playback identifier represent different audio playback modes of the electronic device. For example, the audio playback identifier may be "1" and stored in correspondence with the "external speaker mode" of the audio playback mode, while the audio playback identifier may be "0" and stored in correspondence with the "headphone mode" of the audio playback mode. In this manner, the current audio playback mode of the electronic device may be obtained by identifying the value of the audio playback identifier.

[0034] Step S140: If the audio playback mode is an external speaker mode, the volume of the electronic device is adjusted to a mute state.

[0035] As a method, if the audio playback mode is identified as the external speaker mode, the volume of the electronic device can be adjusted to a silent state. Specifically, the volume of the electronic device can be adjusted to "0", or the set volume of the electronic device can be maintained, and the volume of the electronic device can be temporarily adjusted to a silent mode. This can avoid embarrassing users in public places due to external audio and video volume, leaking users' privacy, or disturbing other users, thereby improving the intelligence of volume control.

[0036] In one implementation, after identifying that the audio playback mode is the external speaker mode, the volume of the electronic device can be instantly adjusted to a mute state. If the user immediately inserts headphones when identifying that the audio playback mode is the external speaker mode, after detecting that the electronic device is connected to the headphones, if the headphones are not worn, the volume of the electronic device can still be adjusted to a mute state to avoid the audio and video volume being transmitted to other users when the headphones are not worn and affecting other users.

[0037] The present application provides a volume control method, which obtains the location information of an electronic device; if the location information indicates that the electronic device is at a preset location, obtains the running state of a target application and the volume state of the electronic device; if the running state is an on state and the volume state is not a mute state, obtains the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjusts the volume of the electronic device to mute, so that the electronic device can timely detect the change of the running state of the target application in the electronic device according to the change of its location, and then allows the electronic device to flexibly adjust the volume state of the electronic device to a mute state according to the running status of the audio and video software in the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation due to the excessive volume of the electronic device in public places, thereby improving the user experience.

[0038] See also Figure 2 Another embodiment of the present application provides a volume control method, which is applied to an electronic device, and the method includes:

[0039] Step S210: Acquire the movement trend of the electronic device.

[0040] Among them, the movement trend of the electronic device may include parameters such as movement frequency, movement direction, and movement acceleration. Specifically, the movement frequency, movement direction, and movement acceleration data of the electronic device can be obtained in real time through GPS positioning function or base station positioning, thereby obtaining the movement trend of the electronic device.

[0041] Step S220: Acquire location information of the electronic device according to the movement trend.

[0042] Optionally, when a user carries an electronic device on a vehicle, the walking speed is usually faster, so as an implementation method, the current location information of the electronic device can be determined by the movement trend of the electronic device. Among them, in one implementation method, it can be determined whether the movement speed of the electronic device in the target time period (which can be the movement speed relative to the ground) is higher than the speed threshold (for example, the speed threshold can be 3m / second, or other values). Optionally, if the movement speed of the electronic device in the target time period is higher than the speed threshold, it can be determined that the electronic device is in a preset position. For example, if the movement speed of the electronic device in 1 minute is greater than 3m / second, it can be determined that the electronic device is in a preset position.

[0043] In another implementation, the current location information of the electronic device can be determined by the moving direction of the electronic device. Optionally, if the electronic device moves in a direction close to the preset location and the distance between the electronic device and the preset location is less than a specified distance, it can be determined that the electronic device is at the preset location. If the electronic device moves in a direction away from the preset location, it can be determined that the electronic device is not at the preset location.

[0044] Optionally, as another implementation, the location information of the electronic device can also be obtained through the ride record information. Specifically, if it is detected that the electronic device has refreshed the ride record information, it can be determined that the electronic device is at a preset location. The ride record information can be obtained from the usage data of the ride code, and the ride code includes the ride code of a proprietary ride application or the ride code of a third-party payment application.

[0045] Step S230: If the location information indicates that the electronic device is at a preset location, the running state of the target application is obtained, and the volume state of the electronic device is obtained.

[0046] Step S240: Determine whether the running state is the on state.

[0047] Optionally, if it is determined that the running state of the target application of the electronic device is turned on, the judgment content of the following step S250 can be continued, and if the running state of the target application is not turned on, for example, it is turned off, then the current judgment process can be ended and the volume control process can be exited.

[0048] Step S250: Determine whether the volume state is a non-mute state.

[0049] Optionally, when the target application is in the on state, if the volume state of the electronic device is not in the silent state, the content of the following step S260 can be continued, and if the volume state of the electronic device is in the silent state, the current judgment process can be ended and the volume control process can be exited.

[0050] Step S260: Acquire the audio playback mode of the electronic device.

[0051] Step S270: Determine whether the audio playback mode is an external playback mode.

[0052] Optionally, if the audio playback mode is not the external speaker mode, the current judgment process can be ended and the volume control process can be exited.

[0053] Step S280: adjusting the volume of the electronic device to a mute state.

[0054] In order to optimize the problem of users being embarrassed due to the audio and video volume being played out loud when not wearing headphones, and to optimize the problem of users not being able to fully listen to audio and video content due to not wearing headphones, or the volume of the headphones being transmitted to other users and affecting other users, in this embodiment, when the audio playback mode is determined to be the external speaker mode, when it is detected that the electronic device is connected to the headphones, if it is detected that the headphones are not worn, the volume of the electronic device can be adjusted to a mute state and the playback of the audio and video content can be paused at the same time, that is, from the time the headphones are successfully connected to the electronic device to the time the headphones are worn, the volume of the electronic device is in a mute state, and the audio and video content can also be in a paused state.

[0055] For example, the volume of the electronic device can be adjusted to 0, or temporarily adjusted to silent mode, and the playback of audio and video content can be paused. When it is detected that the headphones are being worn, the volume of the electronic device can be adjusted to the normal playback volume, or the silent mode can be released, and the playback of audio and video content can be unpaused, so that the volume of the electronic device can be flexibly and intelligently controlled according to the user's operating habits.

[0056] Optionally, in the present embodiment, after the volume of the electronic device is adjusted to the mute state, the volume state of the electronic device can be directly switched from the mute state to the non-mute state when it is detected that the electronic device is connected to the earphones, without having to consider whether the earphones are being worn, so that the volume of the audio and video played by the speaker can be switched to the mute state as quickly as possible, thus avoiding the user from falling into an embarrassing situation.

[0057] Optionally, in some embodiments, adjusting the volume of the electronic device to a mute state may be adjusting the volume of the electronic device to 0. In this manner, regardless of whether headphones are connected or whether headphones are worn, the user can manually control the volume to increase the volume to ensure that the user can use the electronic device normally when necessary. For example, when it is detected that the user is playing music through a speaker, the user enters the subway station by swiping the boarding code, and the volume of the music played by the speaker is not 0, in this case, the volume can be temporarily adjusted to 0, and if a call comes in at this time, the user can manually adjust the volume, for example, the volume can be adjusted to the optimal call volume prompted by the system, thereby improving the user's friendly experience with the electronic device.

[0058] A volume control method provided by an embodiment of the present application obtains the position information of an electronic device according to the movement trend of the electronic device, so that the electronic device can accurately and timely detect the change of the running state of a target application according to the change of its position, and then automatically adjust the volume of the electronic device to a mute state according to the running status of the audio and video software in the electronic device, as well as the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation in public places due to the excessive volume of the electronic device, thereby improving the user experience.

[0059] See also Figure 3 Another embodiment of the present application provides a volume control method, which is applied to an electronic device. This embodiment introduces controlling and adjusting the volume based on a change in the running state of an application of the electronic device as a trigger condition. The method includes:

[0060] Step S310: When the target application of the electronic device is in a running state, the location information of the electronic device is obtained.

[0061] The target application in this embodiment includes various audio and video applications. With the increase of life pressure, more and more users like to listen to songs or watch videos (such as live broadcasts or short videos) to relieve work or life pressure. However, playing audio and video in public places is an extremely uncivilized behavior, which may affect others, or put the user in an embarrassing situation due to the volume, and may also leak the user's privacy. In order to improve this problem, this embodiment can obtain the location information of the electronic device when the target application in the electronic device is in the open state (i.e., running state), and obtain the location information of the electronic device by taking the target application of the electronic device in the running state as a trigger condition, so as to timely monitor whether the user enters the subway, bus or other public places while watching short videos, so as to facilitate subsequent volume adjustment. Among them, the specific acquisition process of the location information of the electronic device can refer to the description in the aforementioned embodiment, which will not be repeated here.

[0062] Step S320: If the position information indicates that the electronic device is at a preset position, the volume status of the electronic device is obtained, and the audio playback mode of the electronic device is obtained.

[0063] Step S330: If the volume state is not in a mute state and the audio playback mode is in an external speaker mode, the volume of the electronic device is adjusted to a mute state.

[0064] Optionally, if the volume state of the electronic device is not in mute state and the audio playback mode of the electronic device is in external speaker mode, the volume of the electronic device can be adjusted to mute state to avoid embarrassing the user due to excessive volume in public places.

[0065] A volume control method provided in an embodiment of the present application obtains location information of the electronic device when a target application of the electronic device is in a running state; if the location information indicates that the electronic device is in a preset position, obtains the volume state of the electronic device and obtains the audio playback mode of the electronic device; if the volume state is a non-mute state and the audio playback mode is an external speaker mode, adjusts the volume of the electronic device to a mute state, so that the electronic device can detect changes in the location information of the electronic device in a timely manner according to the running status of the target application, and then automatically adjusts the volume state of the electronic device to a mute state according to the location of the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation due to the excessive volume of the electronic device in public places, thereby improving the user experience.

[0066] See also Figure 4 The present application embodiment provides a volume control device 400, which runs on an electronic device, and the device 400 includes:

[0067] The first acquisition module 410 is used to acquire the location information of the electronic device.

[0068] As an implementation mode, the first acquisition module 410 can be used to acquire the movement trend of the electronic device; acquire the location information of the electronic device according to the movement trend, wherein if the movement speed of the electronic device within the target time period is higher than a speed threshold, it is determined that the electronic device is at a preset position; or if the electronic device moves in a direction close to the preset position and the distance between the electronic device and the preset position is less than a specified distance, it is determined that the electronic device is at the preset position.

[0069] As another implementation, the first acquisition module 410 may be used to determine that the electronic device is at a preset position if it is detected that the electronic device has refreshed the riding record information.

[0070] The second acquisition module 420 is configured to acquire the running state of the target application and the volume state of the electronic device if the location information indicates that the electronic device is at a preset location.

[0071] The third acquisition module 430 is used to acquire the audio playback mode of the electronic device if the running state is the on state and the volume state is not the mute state.

[0072] The volume control module 440 is used to adjust the volume of the electronic device to a state if the audio playback mode is an external speaker mode.

[0073] Optionally, the volume control module 440 may be configured to adjust the volume of the electronic device to a mute state when it is detected that the electronic device is connected to an earphone and the earphone is not worn.

[0074] Optionally, the device 400 may further include a state switching module, which is used to adjust the volume of the electronic device to the mute state, and then switch the mute state to the non-mute state when it is detected that the electronic device is connected to headphones.

[0075] The present application provides a volume control device, which obtains the location information of an electronic device; if the location information indicates that the electronic device is at a preset location, obtains the running state of a target application and the volume state of the electronic device; if the running state is on and the volume state is not in a mute state, obtains the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjusts the volume of the electronic device to a mute state, so that the electronic device can timely detect the change of the running state of the target application in the electronic device according to the change of its location, and then the electronic device can flexibly adjust the volume state of the electronic device to a mute state according to the running status of the audio and video software in the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation in public due to the excessive volume of the electronic device, thereby improving the user experience.

[0076] See also Figure 5 , a volume control device 500 provided in an embodiment of the present application is operated on an electronic device, and the device 500 includes:

[0077] The location information acquisition unit 510 is used to acquire the location information of the electronic device when the target application of the electronic device is in a running state.

[0078] The volume information acquiring unit 520 is configured to acquire the volume status of the electronic device and the audio playback mode of the electronic device if the position information indicates that the electronic device is at a preset position.

[0079] The volume control unit 530 is used to adjust the volume of the electronic device to a mute state if the volume state is a non-mute state and the audio playback mode is an external speaker mode.

[0080] A volume control device provided in an embodiment of the present application obtains location information of the electronic device when a target application of the electronic device is in a running state; if the location information indicates that the electronic device is in a preset position, obtains the volume state of the electronic device and obtains the audio playback mode of the electronic device; if the volume state is a non-mute state and the audio playback mode is an external speaker mode, adjusts the volume of the electronic device to a mute state, so that the electronic device can timely detect changes in the location information of the electronic device according to the running status of the target application, and then automatically adjusts the volume state of the electronic device to a mute state according to the location of the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation due to the excessive volume of the electronic device in public places, thereby improving the user experience.

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

[0082] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.

[0083] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0084] See also Figure 6 Based on the above volume control method and device, the embodiment of the present application also provides an electronic device 100 that can execute the above volume control method. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content of the above embodiment, and the processor 104 can execute the program stored in the memory 102.

[0085] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.

[0086] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0087] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0088] The computer readable storage medium 600 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. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0089] In summary, the present application provides a volume control method, device, electronic device and storage medium, which obtains the location information of the electronic device; if the location information indicates that the electronic device is at a preset location, obtains the running status of the target application and the volume status of the electronic device; if the running status is on and the volume status is not silent, obtains the audio playback mode of the electronic device; if the audio playback mode is an external speaker mode, adjusts the volume of the electronic device to a silent state, so that the electronic device can detect the change of the running status of the target application in the electronic device in time according to the change of its location, and then allows the electronic device to flexibly adjust the volume status of the electronic device to a silent state according to the running status of the audio and video software in the electronic device, the volume of the electronic device and the audio playback mode of the electronic device, thereby avoiding the user from falling into an embarrassing situation in public due to the excessive volume of the electronic device, thereby improving the user experience.

[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A volume control method, characterized in that: Applied to electronic equipment, the method comprises: Acquiring the location information of the electronic device, wherein the acquiring the location information of the electronic device comprises: acquiring a movement trend of the electronic device; acquiring the location information of the electronic device according to the movement trend, wherein the movement trend comprises a moving direction of the electronic device, wherein the acquiring the location information of the electronic device according to the movement trend comprises: if the electronic device moves in a direction close to a preset location and a distance between the electronic device and the preset location is less than a specified distance, determining that the electronic device is at the preset location; and if the electronic device moves in a direction away from the preset location, determining that the electronic device is not at the preset location; If the location information indicates that the electronic device is at a preset location, obtaining the running state of the target application and obtaining the volume state of the electronic device; If the running state is the on state and the volume state is not the mute state, obtaining the audio playing mode of the electronic device; If the audio playback mode is an external speaker mode, the volume of the electronic device is adjusted to a mute state, wherein the step of adjusting the volume of the electronic device to a mute state includes: adjusting the volume of the electronic device to 0.

2. The method according to claim 1, characterized in that The acquiring the location information of the electronic device according to the movement trend includes: If the movement speed of the electronic device within the target time period is higher than a speed threshold, it is determined that the electronic device is at a preset position.

3. The method according to claim 1, characterized in that The obtaining the location information of the electronic device includes: If it is detected that the electronic device has refreshed the riding record information, it is determined that the electronic device is at a preset position.

4. The method according to any one of claims 1 to 3, characterized in that: The step of adjusting the volume of the electronic device to a mute state includes: When it is detected that the electronic device is connected to the earphone, if the earphone is not worn, the volume of the electronic device is adjusted to a mute state.

5. The method according to any one of claims 1 to 3, characterized in that: After adjusting the volume of the electronic device to a mute state, the method further includes: When it is detected that the electronic device is connected to a headset, the mute state is switched to the non-mute state.

6. A volume control method, characterized in that: Applied to electronic equipment, the method comprises: When the target application of the electronic device is in a running state, the location information of the electronic device is obtained, wherein the obtaining of the location information of the electronic device includes: obtaining a movement trend of the electronic device; obtaining the location information of the electronic device according to the movement trend, wherein the movement trend includes a moving direction of the electronic device, and the obtaining of the location information of the electronic device according to the movement trend includes: if the electronic device moves in a direction close to a preset position and the distance between the electronic device and the preset position is less than a specified distance, determining that the electronic device is at the preset position; if the electronic device moves in a direction away from the preset position, determining that the electronic device is not at the preset position; If the position information indicates that the electronic device is at a preset position, obtaining a volume state of the electronic device and obtaining an audio playback mode of the electronic device; If the volume state is a non-mute state and the audio playback mode is an external speaker mode, the volume of the electronic device is adjusted to a mute state, wherein adjusting the volume of the electronic device to a mute state includes: adjusting the volume of the electronic device to 0.

7. A volume control device, characterized in that: Running on an electronic device, the device comprises: A first acquisition module is used to acquire the location information of the electronic device, wherein the acquiring the location information of the electronic device includes: acquiring a movement trend of the electronic device; acquiring the location information of the electronic device according to the movement trend, wherein the movement trend includes a moving direction of the electronic device, wherein the acquiring the location information of the electronic device according to the movement trend includes: if the electronic device moves in a direction close to a preset location and the distance between the electronic device and the preset location is less than a specified distance, determining that the electronic device is at the preset location; and if the electronic device moves in a direction away from the preset location, determining that the electronic device is not at the preset location. A second acquisition module, configured to acquire the running state of a target application and the volume state of the electronic device if the location information indicates that the electronic device is at a preset location; A third acquisition module, configured to acquire the audio playback mode of the electronic device if the running state is an on state and the volume state is a non-mute state; The volume control module is used to adjust the volume of the electronic device to a mute state if the audio playback mode is an external speaker mode, wherein adjusting the volume of the electronic device to a mute state includes: adjusting the volume of the electronic device to 0.

8. A volume control device, characterized in that: Running on an electronic device, the device comprises: a location information acquisition unit, configured to acquire the location information of the electronic device when the target application of the electronic device is in a running state, wherein the acquiring the location information of the electronic device comprises: acquiring a movement trend of the electronic device; acquiring the location information of the electronic device according to the movement trend, wherein the movement trend comprises a moving direction of the electronic device, wherein the acquiring the location information of the electronic device according to the movement trend comprises: if the electronic device moves in a direction close to a preset location and the distance between the electronic device and the preset location is less than a specified distance, determining that the electronic device is at the preset location; and if the electronic device moves in a direction away from the preset location, determining that the electronic device is not at the preset location; a volume information acquisition unit, configured to acquire a volume state of the electronic device and an audio playback mode of the electronic device if the position information indicates that the electronic device is at a preset position; A volume control unit is used to adjust the volume of the electronic device to a mute state if the volume state is a non-mute state and the audio playback mode is an external speaker mode, wherein adjusting the volume of the electronic device to a mute state includes: adjusting the volume of the electronic device to 0.

9. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of any one of claims 1-5 or 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 5 or 6 is executed.

Citation Information

Patent Citations

  • Muting method according to use scenes and terminal device

    CN105872746A

  • Volume regulating method, mobile terminal, and computer readable storage medium

    CN108521521A