WO2023098551A1 - 音频调节方法和音频调节装置 - Google Patents

音频调节方法和音频调节装置 Download PDF

Info

Publication number
WO2023098551A1
WO2023098551A1 PCT/CN2022/133949 CN2022133949W WO2023098551A1 WO 2023098551 A1 WO2023098551 A1 WO 2023098551A1 CN 2022133949 W CN2022133949 W CN 2022133949W WO 2023098551 A1 WO2023098551 A1 WO 2023098551A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
audio
electronic device
preset
output
Prior art date
Application number
PCT/CN2022/133949
Other languages
English (en)
French (fr)
Inventor
余莲
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023098551A1 publication Critical patent/WO2023098551A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Definitions

  • the present application belongs to the technical field of communication, and in particular relates to an audio adjustment method and an audio adjustment device.
  • the mobile phone after the user unlocks the mobile phone, the mobile phone always returns to the last page before the lock screen. If the interface before unlocking is playing audio, it will continue to play the audio after unlocking, which is likely to affect the surrounding crowd.
  • the purpose of the embodiments of the present application is to provide an audio adjustment method, device, electronic device and readable storage medium, which realizes the automatic adjustment of the volume of the output audio after the electronic device is unlocked when the electronic device is playing audio before the screen is locked value to avoid affecting the surrounding population.
  • an embodiment of the present application provides an audio adjustment method, including: when the electronic device is in a screen-locked state, receiving an unlock input from the user for the electronic device; In the case that there is an output of the first audio, an output parameter of the first audio is adjusted.
  • the embodiment of the present application provides an audio adjustment device, including: a receiving module, configured to receive an unlock input from the user on the electronic device when the electronic device is in a screen-locked state; an adjustment module, configured to respond to the unlock input , if it is detected that the electronic device before locking the screen has output of the first audio, adjust the output parameter of the first audio.
  • the embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor.
  • the program or instruction is executed by the processor, the first aspect is implemented. steps of the method.
  • the embodiment of the present application further provides an electronic device configured to execute the steps of the audio adjustment method in the first aspect.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the audio adjustment method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the audio adjustment method as in the first aspect A step of.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the audio adjustment method in the first aspect.
  • the electronic device when the electronic device is in a screen-locked state, an input to unlock the electronic device by the user is received.
  • the electronic device detects the audio output state of the electronic device before the screen is locked in response to the user's unlocking input. If the electronic device has the first audio output before the screen is detected, the output parameter of the electronic device to output the first audio is adjusted.
  • the output parameters of the unlocked electronic device output audio are adjusted, so that before the electronic device locks the screen
  • the volume value of the output audio can be automatically adjusted after the electronic device is unlocked, so as to avoid affecting the surrounding people.
  • FIG. 1 shows a schematic flowchart of an audio adjustment method provided by an embodiment of the present application
  • FIG. 2 shows a schematic diagram of a display interface provided by an embodiment of the present application
  • FIG. 3 shows a structural block diagram of an audio adjustment device provided by an embodiment of the present application
  • FIG. 4 shows a structural block diagram of an electronic device provided by an embodiment of the present application
  • FIG. 5 shows a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 1 shows a schematic flow chart of the audio adjustment method provided in the embodiment of the present application. As shown in FIG. 1 , the audio adjustment method includes:
  • Step 102 when the electronic device is in a screen-locked state, receiving a user's input to unlock the electronic device;
  • Step 104 in response to the unlocking input, if it is detected that the electronic device before the screen is locked has the output of the first audio, an output parameter of the first audio is adjusted.
  • the electronic device can adjust the output parameters of the electronic device when it outputs audio in response to the unlock input after receiving the user's unlock input. , so that the electronic device continues to output audio according to the adjusted output parameters.
  • the output parameter includes one or a combination of the output volume, the number of channels for outputting audio, and the position of channels for outputting audio.
  • the electronic device is selected as a mobile phone, and the user locks the screen of the mobile phone during the process of running the video playback software through the mobile phone, and the mobile phone stops outputting video and audio at this time. After the user performs an unlock input to the phone, the phone is unlocked and audio is output with a reduced volume value. At this time, the mobile phone continues to play the video, and outputs audio according to the reduced volume value.
  • the output parameters of the unlocked electronic device output audio are adjusted, so that the electronic device locks the screen.
  • the electronic device automatically adjusts the volume value of the output audio after unlocking, so as to avoid the effect of affecting the surrounding people.
  • adjusting the output parameters of the first audio includes: reducing the volume of the first audio when it is detected that the environmental parameters of the electronic device meet the preset conditions; wherein the environmental parameters include at least one of the following Items: network signal distribution information, ambient volume information, time information, location information.
  • the electronic device judges the scene where the electronic device outputs the first audio by detecting the environment where the electronic device is located. Specifically, the electronic device collects environmental parameters and detects the collected environmental parameters. If the detected environmental parameters meet the preset conditions, it is determined that there are many people in the current environment. If the key outputs the first audio, it will have a bad influence on the surrounding people, so the volume when the electronic device outputs the first audio is reduced.
  • the collected environmental parameters include but are not limited to at least one of the following: network signal distribution information, environmental volume information, time information, and location information.
  • the ambient volume information includes the ambient volume value of the environment where the electronic device is located.
  • the time information includes the time when the electronic device receives the unlock input.
  • Location information includes positioning information of electronic devices.
  • the network signal distribution information includes the number and signal strength of wireless network hotspots in the current environment, and the number of devices that transmit data according to the set transmission protocol.
  • the number of wireless network hotspots is the number of signal sources of wireless network technology (Wireless Fidelity, WI-FI) in the current environment, and the number of devices for network download is the number of devices for downloading data through BitTorrent (BT) transmission protocol .
  • the signal strength of the wireless network hotspot is the strength of the WI-FI signal in the current environment.
  • the network signal distribution information when it is detected that the network signal distribution information satisfies the preset condition, it includes: the number of wireless network hotspots in the environment where the electronic device is located is greater than the preset number value, and the number of wireless network hotspots in the environment where the electronic device is located The signal strength is greater than the preset strength.
  • the number of wireless network hotspots when it is detected that the number of wireless network hotspots is greater than the preset number value, it can be determined that the number of users in the environment where the electronic device is currently located is large, and when the number of wireless network hotspots detected in the environment where the electronic device is located If the signal strength is strong, it can be determined that the location of the electronic device is relatively close to the crowd. That is to say, if it is detected that the network signal distribution information satisfies the preset condition, it is determined that if the electronic device continues to output the first audio at a higher volume, it will have an impact on other groups of people who are not users, so reduce the frequency of the electronic device. Output the volume of the first audio.
  • the environmental parameters of the environment where the electronic device is located are collected, and it is judged whether the environmental parameters meet the preset conditions.
  • the volume value of the output audio is reduced, so as to avoid the influence of the high volume value output by the electronic device on the surrounding people.
  • the volume value output by the electronic device is no longer reduced. Accurate adjustment of the volume value of the audio output by the electronic device is realized according to the environmental parameters where the electronic device is located, and the accuracy of volume value adjustment is improved.
  • the ambient volume information when it is detected that the ambient volume information satisfies the preset condition, it includes: the ambient volume value of the environment where the electronic device is located is smaller than the preset volume value.
  • the difference between the reduced volume value and the ambient volume value is within the preset range of difference, that is, the reduced volume value is close to the ambient volume value.
  • the microphone is turned on to collect the ambient volume value.
  • the electronic device when the electronic device is in the lock screen state, the electronic device periodically turns on the microphone to collect the ambient volume value, or the electronic device turns on the microphone to collect the ambient volume value after receiving the unlock input. It is understandable that in this case You can delay the display of the interface before the lock screen, and delay the output of the content in the interface.
  • detecting that the time information satisfies the preset condition includes: the moment when the electronic device receives the unlock input is within the preset time range.
  • the preset time range can be set by the user, or automatically set according to the usage pattern of the user. For example: the user usually takes a lunch break from 12:00 noon to 14:00 noon, then this time period is set as the preset time range.
  • the volume of the first audio output by the electronic device is lowered, so as to prevent the electronic device from outputting the first audio at a higher volume, which will affect the surrounding people on lunch break.
  • detecting that the location information satisfies a preset condition includes: the location information when the electronic device receives an unlock input is within a preset location range.
  • the preset location range can be set by the user, or judged according to the specific location of the positioning information.
  • the preset location range includes the location range of office buildings.
  • various environmental parameters may be comprehensively analyzed. For example: determine the scene and time period when the user unlocks the mobile phone through location information and time information, determine the number of other people in the user's environment through network signal distribution information, and determine whether the environment where the electronic device is located is quiet through the ambient volume value.
  • the volume of the first audio output by the electronic device is reduced by comprehensively analyzing the time when the electronic device is unlocked, the location, the quietness of the environment and the number of other people.
  • the volume reduction range of the first audio can be determined according to the currently collected environmental parameters.
  • reducing the volume of the first audio includes: reducing the volume of the first audio to the first volume; and adjusting the first volume to the second volume within a preset time period.
  • the second volume is greater than the first volume, and the second volume is smaller than the initial volume of the first audio.
  • reducing the volume of the electronic device when outputting the first audio includes: reducing the volume of the output first audio to the first volume, the electronic device outputs the first audio according to the first volume, and the electronic device outputs the first audio within a preset time period. Gradually increase the first volume to a second volume, where the second volume is less than or equal to the initial volume of the first audio and greater than the first volume.
  • Audio can be output at the most appropriate volume (to prevent the volume from being too low or too loud).
  • the first volume may be the mute volume of the electronic device.
  • the electronic device After the electronic device receives the unlock input, the electronic device is muted, and the volume is gradually increased to the second volume within a preset time period.
  • the electronic device gradually increases the volume value of the output first audio, the user can respond to the output of the first audio. If the electronic device receives the volume adjustment input from the user, it adjusts the volume according to the volume adjustment input. If the electronic device gradually During the process of increasing the output volume of the first audio, if the user does not perform any operation input on the electronic device, the volume of the first audio is gradually increased to the second volume.
  • the second volume is smaller than the initial volume of the first audio.
  • the volume of the first audio is adjusted by first decreasing and then gradually increasing, which can not only remind the user that the current electronic device is playing the first audio, but also enable the user to have enough time to adjust the volume of the first audio.
  • the playback of the audio is adjusted to avoid adverse effects caused by the electronic device suddenly outputting the first audio at a higher volume after unlocking, and at the same time output the first audio at a volume that the user thinks is more appropriate.
  • reducing the volume of the first audio includes: reducing the volume of the first audio to a first volume; and adjusting the first volume to a fourth volume within a preset time period. Wherein, the fourth volume is greater than the initial volume of the first audio.
  • the preset duration is associated with environmental parameters in the electronic device.
  • the first volume to the second volume within the preset period of time before adjusting the first volume to the second volume within the preset period of time, it further includes: acquiring network signal distribution information in the environment where the electronic device is located; determining the preset volume according to the network signal distribution information Set duration.
  • the density of crowds around the electronic device and the distance between the crowd and the electronic device can be determined through the network signal distribution information in the environmental parameters.
  • the network signal distribution information includes the number of network signals in the environment where the electronic device is located and the signal strength of the network signal, wherein the number and signal strength of the network signal can reflect the number of people in the environment where the electronic device is located, and the distance between the electronic device and other people around it.
  • the preset duration is set as the first duration.
  • the volume of the first audio is reduced to the first volume, and within the first duration, the first volume is gradually increased to the second volume.
  • the preset duration is set to the second duration.
  • the speed at which the electronic device raises the volume can be adjusted according to the density of the crowd in the current environment, so that the speed at which the volume rises matches the environmental parameters.
  • reducing the volume of the first audio includes: reducing the volume of the first audio to the first volume, displaying a first control on the display screen of the electronic device, the first control is used to adjust the first The volume of the audio.
  • a first control for adjusting the volume value of the electronic device is displayed on the display screen of the electronic device.
  • the user can adjust the output volume value of the electronic device again by performing an adjustment input on the first control, which ensures the user's flexibility in adjusting the volume value of the output audio of the electronic device.
  • Fig. 2 shows a schematic diagram of a display interface provided by an embodiment of the present application.
  • the electronic device is a mobile phone.
  • the mobile phone is in the unlocking interface 202, after receiving the user's unlocking input for the mobile phone, the mobile phone is unlocked and displays an audio playback interface 204, and the mobile phone outputs the first audio at a first volume.
  • a first control 206 capable of adjusting the volume value is displayed on the playback interface 204 , and the user can adjust the output volume of the electronic device by performing an adjustment input on the first control.
  • reducing the volume of the first audio includes: reducing the volume of the first audio to a third volume.
  • the third volume is associated with the ambient volume.
  • reducing the volume of the first audio output by the electronic device includes: after the electronic device receives the unlock input, reducing the volume of the first audio to a third volume, where the third volume is lower than the initial volume of the first audio.
  • the third volume is associated with the ambient volume, and when the ambient volume is low, the third volume is also low, so that the electronic device outputs the first audio at the third volume without affecting surrounding people.
  • the ambient volume is high, the third volume is also high, so that the user can still listen to the first audio output by the electronic device in a relatively noisy environment.
  • the electronic device After the electronic device receives the unlock input, it turns on the microphone to collect the ambient volume, determines a corresponding third volume according to the ambient volume, and controls the electronic device to output the first audio at the third volume.
  • the volume of the first audio output by the electronic device is adjusted to a third volume value related to the ambient volume, so that the volume of the first audio output by the electronic device matches the ambient volume, In a relatively quiet environment, the electronic device can output the first audio at a lower volume, and in a relatively noisy environment, the electronic device can output the first audio at a higher volume.
  • mapping relationship between the third volume and the ambient volume. After collecting the ambient volume, the electronic device searches for a third volume corresponding to the ambient volume according to the mapping relationship.
  • the mapping relationship can be stored in the local storage area of the electronic device, and the user can manually update the settings, and the electronic device can also update the mapping relationship according to other environmental parameters such as positioning information. According to the collected ambient volume, the corresponding third volume can be quickly found through the mapping relationship, which improves the efficiency of adjusting the volume value of the output first audio.
  • the collected ambient volume is set as the third volume.
  • the third volume is set to be close to the ambient volume, so as to reduce the impact on surrounding people on the premise that the user can listen to the first audio.
  • the unlocking input of the electronic device after receiving the unlocking input of the electronic device, it further includes: in the case that the unlocking input is a preset unlocking input, responding to the preset unlocking input, unlocking the electronic device, and displaying the main interface, and Stop outputting the first audio.
  • the electronic device after the electronic device receives the unlocking input, it detects the type of the unlocking input, and if it is detected that the unlocking input is a preset unlocking input, the electronic device does not continue to display the interface before locking, Display the main interface directly and stop playing audio.
  • the electronic device after receiving the unlocking input, the electronic device adjusts the interface displayed after the electronic device is unlocked according to different unlocking inputs.
  • the output parameter plays the audio.
  • the electronic device after the electronic device adjusts the output parameters of the audio, the electronic device can continue to output the audio according to the adjusted output parameters. Enable users to continue using electronic devices to play audio without disturbing others.
  • the electronic device can also automatically pause the playing audio after adjusting the output parameters, so that the user can choose whether to continue playing the audio with the adjusted output parameters, which improves the user's flexibility in audio playback.
  • the audio adjustment method provided in the embodiment of the present application may be executed by an audio adjustment device.
  • the method for unlocking the electronic device performed by the audio adjustment device is taken as an example to describe the device for unlocking the electronic device provided in the embodiment of the present application.
  • FIG. 3 shows a structural block diagram of the audio adjustment device provided in the embodiment of the present application.
  • the audio adjustment device 300 includes:
  • the receiving module 302 is configured to receive a user's unlock input for the electronic device when the electronic device is in a screen-locked state;
  • the adjustment module 304 is configured to adjust an output parameter of the first audio in response to the unlock input, when it is detected that there is an output of the first audio on the electronic device before the screen is locked.
  • the output parameters of the unlocked electronic device output audio are adjusted, so that the electronic device locks the screen.
  • the electronic device automatically adjusts the volume value of the output audio after unlocking, so as to avoid the effect of affecting the surrounding people.
  • the adjustment module 304 is further configured to reduce the volume of the first audio when it is detected that the environmental parameters of the electronic device meet the preset conditions; wherein the environmental parameters include at least one of the following: network Signal distribution information, ambient volume information, time information, location information.
  • the collected environmental parameters include but are not limited to at least one of the following: network signal distribution information, environmental volume information, time information, and location information.
  • the environmental parameters of the environment where the electronic device is located are collected, and it is judged whether the environmental parameters meet the preset conditions.
  • the volume value of the output audio is reduced, so as to avoid the influence of the high volume value output by the electronic device on the surrounding people.
  • the volume value output by the electronic device is no longer reduced. Accurate adjustment of the volume value of the audio output by the electronic device is realized according to the environmental parameters where the electronic device is located, and the accuracy of adjusting the volume value is improved.
  • the adjustment module 304 when the environmental parameter is the network signal distribution information, is specifically configured to: detect that the number of wireless network hotspots in the environment where the electronic device is located is greater than a preset number value, and when the signal strength of the wireless network hotspot in the environment where the electronic device is located is greater than the preset strength, adjust the output parameter of the first audio frequency;
  • the adjustment module 304 is specifically configured to: adjust the volume of the first audio frequency when it is detected that the environmental volume value in the environment where the electronic device is located is less than a preset volume value. Output parameters;
  • the adjustment module 304 is specifically configured to: adjust the output of the first audio when it is detected that the moment when the electronic device receives an unlock input is within a preset time range parameter;
  • the adjustment module 304 is specifically configured to: adjust the first audio frequency when it is detected that the location information when the electronic device receives an unlock input is within a preset location range. Output parameters.
  • the adjustment module 304 is further configured to reduce the volume of the first audio to the first volume
  • the adjustment module 304 is further configured to adjust the first volume to a second volume within a preset time period, the second volume is greater than the first volume, and the second volume is lower than the initial volume of the first audio.
  • reducing the volume when the electronic device outputs the first audio includes: reducing the volume of the output first audio to the first volume, the electronic device outputs the first audio according to the first volume, and the electronic device can Gradually increase the first volume to the second volume, the second volume is less than or equal to the initial volume of the first audio and greater than the first volume.
  • the volume of the first audio is adjusted by first decreasing and then gradually increasing, which can not only remind the user that the current electronic device is playing the first audio, but also enable the user to have enough time to adjust the volume of the first audio.
  • the playback of the audio is adjusted to avoid adverse effects caused by the electronic device suddenly outputting the first audio at a higher volume after unlocking, and at the same time output the first audio at a volume that the user thinks is more appropriate.
  • the adjustment module 304 is further configured to reduce the volume of the first audio to the first volume
  • the adjustment module 304 is further configured to adjust the first volume to a fourth volume within a preset time period, the fourth volume is greater than the first volume, wherein the fourth volume is greater than the initial volume of the first audio.
  • the fourth volume after reducing the volume of the first audio to the first volume, gradually increase the volume of the first audio to the fourth volume within a preset time period, and set the fourth volume to be greater than the first audio volume. initial volume.
  • the function of reminding the user is realized, preventing the user from unlocking the electronic device in a noisy environment, and being unable to find that the electronic device is in the state of playing the first audio.
  • the audio adjustment device 300 also includes:
  • the display module is further configured to display a first control on the display screen of the electronic device, and the first control is used to adjust the volume of the first audio.
  • a first control for adjusting the volume value of the electronic device is displayed on the display screen of the electronic device.
  • the user can adjust the output volume value of the electronic device again by performing an adjustment input on the first control, which ensures the user's flexibility in adjusting the volume value of the output audio of the electronic device.
  • the audio adjustment device 300 further includes:
  • An acquisition module configured to acquire network signal distribution information in the environment where the electronic device is located
  • the determining module is configured to determine the preset duration according to the network signal distribution information.
  • the network signal distribution information includes the number of network signals in the environment where the electronic device is located and the signal strength of the network signal, wherein the number and signal strength of the network signal can reflect the number of people in the environment where the electronic device is located, and the distance between the electronic device and other people around it.
  • the network signal distribution information in the environment where the electronic device is located is detected, and the degree of population density in the environment where the electronic device is located can be determined according to the detected network signal distribution information, and the electronic device is upgraded accordingly.
  • the preset duration of high volume is set, so that the speed of increasing the volume of electronic equipment is related to the density of people in the current environment, so as to reduce the impact on the surrounding people during the process of raising the volume, and allow users to have sufficient time for electronic devices
  • the device plays audio in response.
  • the adjustment module 304 is further configured to reduce the volume of the first audio to a third volume, where the third volume is associated with the ambient volume.
  • reducing the volume of the first audio output by the electronic device includes: after the electronic device receives the unlock input, reducing the volume of the first audio to a third volume, where the third volume is lower than the initial volume of the first audio.
  • the third volume is associated with the ambient volume, and when the ambient volume is low, the third volume is also set to be low, so that the electronic device outputs the first audio at the third volume without affecting surrounding people.
  • the ambient volume is relatively high
  • the third volume is set relatively high, so that the user can still listen to the first audio output from the electronic device in a relatively noisy environment.
  • the audio adjustment device 300 further includes:
  • An unlocking module used for unlocking the electronic device in response to a preset unlock input when the unlock input is a preset unlock input
  • the display module is also used to display the main interface
  • Control module used to stop playing audio.
  • the electronic device after the electronic device receives the unlocking input, it detects the type of the unlocking input, and if it is detected that the unlocking input is a preset unlocking input, the electronic device does not continue to display the interface before locking, Display the main interface directly and stop playing audio.
  • the electronic device after receiving the unlocking input, the electronic device adjusts the interface displayed after the electronic device is unlocked according to different unlocking inputs.
  • the audio adjustment device also includes:
  • the playback module is used to play audio according to the adjusted output parameters.
  • the electronic device after the electronic device adjusts the output parameters of the audio, the electronic device can continue to output the audio according to the adjusted output parameters. Enable users to continue using electronic devices to play audio without disturbing others.
  • the electronic device can also automatically pause the playing audio after adjusting the output parameters, so that the user can choose whether to continue playing the audio with the adjusted output parameters, which improves the user's flexibility in audio playback.
  • the audio adjusting device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the audio adjustment device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the audio adjustment device provided in the embodiment of the present application can implement the various processes implemented in the foregoing method embodiments, and to avoid repetition, details are not repeated here.
  • An embodiment of the present invention also provides an electronic device configured to execute the processes of the foregoing audio adjustment method embodiments, and achieve the same technical effect. To avoid repetition, details are not repeated here.
  • FIG. 4 shows a structural block diagram of the electronic device according to the embodiment of the present application.
  • the electronic device 400 includes a processor 402 and a memory 404, and the memory 404 stores a program or instruction that can run on the processor 402.
  • the program or instruction is executed by the processor 402
  • each step of the above-mentioned method embodiment can be achieved, and the same technical effect can be achieved. In order to avoid repetition, it is not repeated here repeat.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
  • the electronic device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the user input unit 507 is configured to receive an unlocking input of the user for the electronic device when the electronic device is in a screen-locked state;
  • the processor 510 is configured to, in response to the unlocking input, adjust an output parameter of the first audio when it is detected that the electronic device before the screen is locked has the output of the first audio.
  • the output parameters of the unlocked electronic device output audio are adjusted, so that the electronic device locks the screen.
  • the electronic device automatically adjusts the volume value of the output audio after unlocking, so as to avoid the effect of affecting the surrounding people.
  • the processor 510 is configured to reduce the volume of the first audio when it is detected that the environmental parameters of the electronic device meet the preset conditions; wherein the environmental parameters include at least one of the following: network signal distribution information, environmental volume information , time information, location information.
  • the environmental parameters of the environment where the electronic device is located are collected, and whether the environmental parameters meet the preset condition is judged.
  • the volume value of the output audio is reduced, so as to avoid the influence of the high volume value output by the electronic device on the surrounding people.
  • the volume value output by the electronic device is no longer reduced. Accurate adjustment of the volume value of the audio output by the electronic device is realized according to the environmental parameters where the electronic device is located, and the accuracy of adjusting the volume value is improved.
  • the processor 510 is configured to detect that the number of wireless network hotspots in the environment where the electronic device is located is greater than a preset value, and the number of wireless network hotspots in the electronic device is When the signal strength of the wireless network hotspot in the environment is greater than the preset strength, reduce the volume of the first audio;
  • the processor 510 is configured to reduce the first audio frequency when it is detected that the environmental volume value in the environment where the electronic device is located is less than a preset volume value. volume;
  • the processor 510 is configured to, when it is detected that the moment when the electronic device receives an unlock input is within a preset time range, reduce the frequency of the first audio frequency. volume;
  • the processor 510 is configured to reduce the first audio frequency when it is detected that the location information when the electronic device receives an unlock input is within a preset location range. volume.
  • processor 510 is configured to reduce the volume of the first audio to the first volume
  • the processor 510 is configured to adjust the first volume to a second volume within a preset time period, the second volume is greater than the first volume, and the second volume is lower than the initial volume of the first audio.
  • the volume of the first audio is adjusted by first decreasing and then gradually increasing, which can not only remind the user that the current electronic device is playing the first audio, but also enable the user to have enough time to adjust the volume of the first audio.
  • the playback of the audio is adjusted to avoid adverse effects caused by the electronic device suddenly outputting the first audio at a higher volume after unlocking.
  • processor 510 is configured to reduce the volume of the first audio to the first volume
  • the processor 510 is configured to adjust the first volume to a fourth volume within a preset time period, the fourth volume is greater than the first volume, wherein the fourth volume is greater than the initial volume of the first audio.
  • the fourth volume after reducing the volume of the first audio to the first volume, gradually increase the volume of the first audio to the fourth volume within a preset time period, and set the fourth volume to be greater than the first audio volume. initial volume.
  • the function of reminding the user is realized, preventing the user from unlocking the electronic device in a noisy environment, and being unable to find that the electronic device is in the state of playing the first audio.
  • the processor 510 is configured to adjust the first volume to a second volume within a preset duration, the second volume is greater than the first volume, and the second volume is lower than the initial volume of the first audio;
  • the display unit 506 is configured to display a first control on a display screen of the electronic device, where the first control is used to adjust the volume of the first audio.
  • a first control for adjusting the volume value of the electronic device is displayed on the display screen of the electronic device.
  • the user can adjust the output volume value of the electronic device again by performing an adjustment input on the first control, which ensures the user's flexibility in adjusting the volume value of the output audio of the electronic device.
  • the processor 510 is configured to acquire network signal distribution information in the environment where the electronic device is located;
  • the processor 510 is configured to determine a preset duration according to network signal distribution information.
  • the network signal distribution information in the environment where the electronic device is located is detected, and the degree of population density in the environment where the electronic device is located can be determined according to the detected network signal distribution information, and the electronic device is upgraded accordingly.
  • the preset duration of high volume is set, so that the speed of increasing the volume of electronic equipment is related to the density of people in the current environment, so as to reduce the impact on the surrounding people during the process of raising the volume, and allow users to have sufficient time for electronic devices
  • the device plays audio in response.
  • the processor 510 is configured to reduce the volume of the first audio to a third volume, where the third volume is associated with the ambient volume.
  • the volume of the first audio output by the electronic device is adjusted to a third volume value related to the ambient volume, so that the volume of the first audio output by the electronic device matches the ambient volume, In a relatively quiet environment, the electronic device can output the first audio at a lower volume, and in a relatively noisy environment, the electronic device can output the first audio at a higher volume.
  • the processor 510 is further configured to unlock the electronic device in response to the preset unlock input when the unlock input is a preset unlock input;
  • a display unit 506, configured to display the main interface
  • the processor 510 is configured to stop playing audio.
  • the user when unlocking the electronic device, the user can flexibly control the interface displayed by the electronic device after unlocking by inputting different unlocking inputs to the electronic device.
  • the user can ensure that the electronic device returns to the main display interface by inputting a preset unlocking input to the electronic device, which improves the user's privacy when unlocking the electronic device.
  • the audio output unit 503 is configured to play audio according to the adjusted output parameters.
  • the electronic device after the electronic device adjusts the output parameters of the audio, the electronic device can continue to output the audio according to the adjusted output parameters. Enable users to continue using electronic devices to play audio without disturbing others.
  • the electronic device can also automatically pause the playing audio after adjusting the output parameters, so that the user can choose whether to continue playing the audio with the adjusted output parameters, which improves the user's flexibility in audio playback.
  • the input unit 504 may include a graphics processing unit (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processing unit 5041 is used in a video capture mode or an image capture mode by an image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072 .
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 509 can be used to store software programs as well as various data.
  • the memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 509 may include volatile memory or nonvolatile memory, or, memory 509 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM erasable programmable read-only memory
  • Electrical EPROM Electrical EPROM
  • EEPROM electronically programmable Erase Programmable Read-Only Memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above audio adjustment method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present invention also provides a computer program product, the computer program product can be executed by a processor to implement the various processes of the above audio adjustment method embodiment, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here .
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above audio adjustment method embodiment, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above audio adjustment method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种音频调节方法和音频调节装置,属于通信技术领域。音频调节方法,包括:在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;响应于所述解锁输入,在检测到锁屏前的所述电子设备存在第一音频的输出的情况下,调整所述第一音频的输出参数。

Description

音频调节方法和音频调节装置
相关申请的交叉引用
本申请要求享有于2021年12月01日提交的名称为“音频调节方法和音频调节装置”的中国专利申请202111454424.1的优先权,该申请的全部内容通过引用并入本文中。
技术领域
本申请属于通信技术领域,尤其涉及一种音频调节方法和音频调节装置。
背景技术
现有技术中,用户解锁手机后,手机都是返回锁屏前最后一个页面,如果解锁前的界面正在播放音频,在解锁后会继续播放该音频,容易影响周围的人群。
发明内容
本申请实施例的目的是提供一种音频调节方法、装置、电子设备和可读存储介质,实现了在电子设备锁屏前处于播放音频的情况下,电子设备在解锁后自动调整输出音频的音量值,避免对周围人群造成影响。
第一方面,本申请实施例提供了一种音频调节方法,包括:在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;响应于解锁输入,在检测到锁屏前的电子设备存在第一音频的输出的情况下,调整第一音频的输出参数。
第二方面,本申请实施例提供了一种音频调节装置,包括:接收模块,用于在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;调整模块,用于响应于解锁输入,在检测到锁屏前的电子设备存在第一音频的 输出的情况下,调整第一音频的输出参数。
第三方面,本申请实施例提供了一种电子设备,包括处理器,存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例还提供一种电子设备,被配置成用于执行如第一方面的音频调节方法的步骤。
第五方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面的音频调节方法的步骤。
第六方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面的音频调节方法的步骤。
第七方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的音频调节方法。
本申请实施例中,在电子设备处于锁屏状态下,接收到用户对电子设备的解锁输入。电子设备响应于用户的解锁输入,对电子设备在锁屏之前的音频输出状态进行检测。在检测到锁屏之前电子设备存在第一音频输出的情况下,则对电子设备输出第一音频的输出参数进行调整。
本申请实施例中,通过在电子设备接收到用户的解锁输入后,根据电子设备锁屏前的音频播放状态,对解锁后的电子设备输出音频的输出参数进行调整,从而在电子设备锁屏前处于播放音频的情况下,能够在电子设备解锁后自动调整输出音频的音量值,避免对周围人群造成影响。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附 图。
图1示出了本申请实施例提供的音频调节方法的流程示意图;
图2示出了本申请实施例提供的显示界面的示意图;
图3示出了本申请实施例提供的音频调节装置的结构框图;
图4示出了本申请实施例提供的电子设备的结构框图;
图5示出了本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图1至图5,通过具体的实施例及其应用场景对本申请实施例提供的音频调节方法和音频调节装置进行详细地说明。
在本申请实施例提供了一种音频调节方法,图1示出了本申请实施例提供的音频调节方法的流程示意图,如图1所示,音频调节方法包括:
步骤102,在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;
步骤104,响应于解锁输入,在检测到锁屏前的电子设备存在第一音频的输出的情况下,调整第一音频的输出参数。
能够理解的,现有技术中,在用于使用应用程序时如果播放有第一音频,此时对电子设备进行锁屏,则会停止播放该第一音频。在用户对电子 设备解锁后,电子设备会恢复播放(以同样的音量)上述第一音频。在本申请实施例中,若电子设备在解锁前存在播放的第一音频,那么电子设备在接收到用户的解锁输入后,响应于解锁输入,可以对电子设备的输出音频时的输出参数进行调整,使电子设备按照调整后的输出参数对音频继续输出。
可以理解的是,输出参数包括输出音量、输出音频的声道数量、输出音频的声道位置中的一项或组合。
在一些实施例中,电子设备选为手机,用户在通过手机运行视频播放软件的过程中,对手机进行锁屏,此时手机停止输出视频和音频。在用户对手机执行解锁输入后,手机解锁,并使用降低后的音量值输出音频。此时,手机继续播放视频,并且按照降低后的音量值输出音频。
本申请实施例中,通过在电子设备接收到用户的解锁输入后,根据电子设备锁屏前的音频播放状态,对解锁后的电子设备输出音频的输出参数进行调整,实现了在电子设备锁屏前处于播放音频的情况下,电子设备在解锁后自动调整输出音频的音量值,避免对周围人群造成影响的效果。
在本申请的一些实施例中,调整第一音频的输出参数,包括:在检测到电子设备的环境参数满足预设条件的情况下,降低第一音频的音量;其中,环境参数包括以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
本申请实施例中,电子设备在接收到用户的解锁输入后,通过检测电子设备所处的环境对电子设备输出第一音频的场景进行判断。具体而言,电子设备采集环境参数,并对采集到的环境参数进行检测,在检测到环境参数满足预设条件的情况下,则判定当前环境中的人员较多,如果继续以较大的音量键输出第一音频,则会对周围人员产生不良影响,因此对电子设备输出第一音频时的音量进行降低。
采集的环境参数包括但不限于以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
值得说明的是,环境音量信息包括电子设备所处环境的环境音量值。时间信息包括电子设备接收到解锁输入时的时刻。位置信息包括电子设备 的定位信息。网络信号分布信息包括当前环境中的无线网络热点的数量和信号强度,以及按照设定传输协议进行数据传输的设备数量。
其中,无线网络热点的数量为当前环境中无线网络技术(Wireless Fidelity,WI-FI)的信号源数量,进行网络下载的设备数量为通过比特流(BitTorrent,BT)传输协议进行下载数据的设备数量。无线网络热点的信号强度为当前环境中WI-FI信号的强度。
在一些实施例中,在检测到网络信号分布信息满足预设条件下包括:电子设备所处环境中的无线网络热点的数量大于预设数量值,且电子设备所处环境中的无线网络热点的信号强度大于预设强度。
在这些实施例中,在检测到无线网络热点的数量大于预设数量值,则能够确定电子设备当前所处环境中的用户数量较多,在检测到电子设备所处环境中的无线网络热点的信号强度较强,则能够确定电子设备所处位置距离人群较近。也就是说,在检测到网络信号分布信息满足预设条件的情况下,则判定电子设备如果继续以较大的音量输出第一音频,则会对非用户的其他人群产生影响,因此降低电子设备输出第一音频的音量。
本申请实施例中,通过在接收到用户对电子设备的解锁输入后,对电子设备所处环境的环境参数进行采集,并对环境参数是否满足预设条件进行判断。在判断环境满足预设条件的情况下对输出音频的音量值进行降低,避免电子设备输出较高的音量值对周围人群产生影响。在判断环境参数未满足预设条件的情况下,不再对电子设备输出的音量值进行降低。实现了根据电子设备所处的环境参数对电子设备输出音频的音量值进行准确调整,提高了音量值调整的准确性。
在一些实施例中,在检测到环境音量信息满足预设条件下包括:电子设备所处环境中的环境音量值小于预设音量值。
在这些实施例中,在检测到环境音量值小于预设音量值,则判定电子设备所处的环境比较安静,电子设备如果继续以较大的音量输出第一音频,则会对非用户的其他人群产生影响,因此降低电子设备输出第一音频的音量。
可以理解的是,降低后的音量值与环境音量值的差值处于预设范围差 值范围内,即,降低后的音量值与环境音量值相接近。
值得说明的是,开启麦克风对环境音量值进行采集。例如:电子设备处于锁屏状态下,电子设备周期性开启麦克风对环境音量值进行采集,或者电子设备在接收到解锁输入后,开启麦克风对环境音量值进行采集,能够理解的,这种情况下可以对锁屏前的界面延迟显示,以及对界面中的内容延迟输出。
在一些实施例中,在检测到时间信息满足预设条件下包括:电子设备接收到解锁输入时的时刻在预设时间范围内。
在这些实施例中,预设时间范围可由用户设定,或按照用户的使用规律自动设定。例如:用户通常在中午12时至14时午休,则将该时段设置为预设时间范围。在检测到接收到的解锁输入处于午休时间内,将电子设备输出第一音频的音量降低,避免电子设备以较高的音量输出第一音频,对周围午休人群产生影响。
在一些实施例中,在检测到位置信息满足预设条件下包括:电子设备接收到解锁输入时的定位信息在预设位置范围内。
在这些实施例中,预设位置范围可由用户设定,或根据定位信息的具体地点进行判断。例如:预设位置范围包括写字楼的位置范围。在检测到接收到的解锁输入时,电子设备的定位信息处于写字楼的位置范围内,则确定用户处于工作环境中,将电子设备输出第一音频的音量降低。
值得说明的是,在执行降低第一音频的音量之前,可以综合分析多种环境参数。例如:通过定位信息和时间信息确定用户解锁手机时的场景和时段,通过网络信号分布信息确定用户所处环境中的其他人员的数量,以及通过环境音量值确定电子设备所处环境是否安静。通过综合分析电子设备解锁的时刻、位置、环境安静程度和其他人员数量对电子设备输出第一音频的音量进行降低。并且可通过当前采集到的环境参数确定对第一音频的音量降低的幅度。
在本申请的一些实施例中,降低第一音频的音量,包括:将第一音频的音量降低至第一音量;在预设时长内,将第一音量调整至第二音量。
其中,第二音量大于第一音量,第二音量小于第一音频的初始音量。
本申请实施例中,降低电子设备输出第一音频时的音量包括:将输出第一音频的音量降低至第一音量,电子设备按照第一音量输出第一音频,并且电子设备在预设时长内逐渐将第一音量升高至第二音量,第二音量小于等于第一音频的初始音量,且大于第一音量。通过先将第一音频的音量调低至第一音量,再逐渐将第一音量提高至第二音量,使用户在电子设备的使用过程中,能够有时间对电子设备输出音频的情况作出反应,能够以最合适的音量输出音频(防止音量过小、过大)。
具体而言,第一音量可选为电子设备的静音音量。在电子设备接收到解锁输入后,将电子设备静音,并在预设时长内逐渐将音量提高至第二音量。电子设备逐渐提高输出第一音频的音量值的过程中,用户能够对输出第一音频做出反应,如果电子设备接收到用户的音量调整输入,则根据音量调整输入调整音量,如果在电子设备逐渐提高输出第一音频的音量值的过程中,用户并未对电子设备进行操作输入,则将第一音频的音量值逐渐提高至第二音量。第二音量小于第一音频的初始音量。
本申请实施例中,通过先降低再逐渐升高的方式对第一音频的音量进行调整,不仅能够提醒用户当前电子设备处于播放第一音频的状态,还能够使用户有充足的时间对第一音频的播放进行调整,避免了解锁后电子设备突然以较大的音量输出第一音频产生的不良影响的同时,可以以用户认为更合适的音量输出第一音频。
在本申请的一些实施例中,降低第一音频的音量,包括:将第一音频的音量降低至第一音量;在预设时长内,将第一音量调整至第四音量。其中,第四音量大于第一音频的初始音量。
本申请实施例中,在将第一音频的音量降低至第一音量后,在预设时长内将第一音频的音量逐渐升高至第四音量,且第四音量大于第一音频的初始音量。
在本申请的一些实施例中,预设时长与电子设备中的环境参数相关联。
在本申请的一些实施例中,在预设时长内,将第一音量调整至第二音量之前,还包括:获取电子设备所处环境中的网络信号分布信息;根据网络信号分布信息,确定预设时长。
可以理解的是,通过环境参数中的网络信号分布信息,能够确定电子设备周围的人群密集程度和人群距离电子设备的距离。
在这些实施例中,网络信号分布信息包括电子设备所处环境中的网络信号的数量和网络信号的信号强度,其中,网络信号的数量和信号强度能够反应电子设备所处环境中的人员数量,以及电子设备与周围其他人员的距离。在检测到当前环境中的人员数量较多,且电子设备距离周围其他人员距离较近的情况下,将预设时长设置为较长,使电子设备在人员较为密集的环境下,缓慢升高音量,避免对周围人员产生影响。在检测到当前环境中的人员数量较少,且电子设备距离周围其他人员距离较远的情况下,将预设时长设置为较短,使电子设备快速提高音量,以对用户产生提示。
具体来说,在检测到网络信号的数量和信号强度均处于预设范围内,则判定电子设备处于人员较为密集的场所,将预设时长设置为第一时长。电子设备解锁后,将第一音频的音量降低至第一音量,在第一时长内,逐渐将第一音量升高至第二音量。在检测到网络信号的数量和信号强度处于预设范围之外,则判定电子设备所处环境的人员较为稀疏,将预设时长设置为第二时长。电子设备解锁后,将第一音频的音量降低至第一量,在第二时长内,逐渐将第一音量升高至第二音量。其中,第一时长大于第二时长。
本申请实施例中通过将预设时长与环境参数相关联,能够根据当前环境中人群的密集程度对电子设备升高音量的速度进行调整,使音量升高速度与环境参数相适配。
在本申请的一些实施例中,降低第一音频的音量,包括:将第一音频的音量降低至第一音量,在电子设备的显示屏幕上显示第一控件,第一控件用于调整第一音频的音量。
在本申请实施例中,在将电子设备输出的音量值降低至第一音量之后,在电子设备的显示屏幕上显示用于调整电子设备的音量值的第一控件。用户通过对第一控件执行调节输入,则能够对电子设备的输出的音量值再次调节,保证了用户对电子设备输出音频的音量值调节的灵活性。
图2示出了本申请实施例提供的显示界面的示意图,如图2所示,电 子设备为手机。在手机处于解锁界面202的情况下,接收用户针对手机的解锁输入后,手机解锁并显示有播放音频的播放界面204,且手机以第一音量输出第一音频。在播放界面204中显示能够调整音量值的第一控件206,用户通过对第一控件执行调节输入,以对电子设备输出的音量进行调节。
在本申请的一些实施例中,降低第一音频的音量,包括:将第一音频的音量降低至第三音量。
其中,第三音量与环境音量相关联。
本申请实施例中,降低电子设备输出第一音频的音量包括:电子设备在接收到解锁输入后,将第一音频的音量降低至第三音量,第三音量小于第一音频的初始音量。第三音量与环境音量相关联,在环境音量较小的情况下,第三音量也较小,使电子设备以第三音量输出第一音频不会影响到周围人员。在环境音量较大的情况下,第三音量也较大,使用户在较为嘈杂的环境中能够依然能够收听电子设备输出的第一音频。
具体而言,在电子设备接收到解锁输入后,开启麦克风采集环境音量,并根据环境音量确定对应的第三音量,控制电子设备以第三音量输出第一音频。
本申请实施例中,在电子设备接收到解锁输入后,将电子设备输出第一音频的音量调整为与环境音量相关的第三音量值,使电子设备输出第一音频的音量与环境音量相符,实现在相对安静的环境中,电子设备能够以较低的音量输出第一音频,在相对嘈杂的环境中,电子设备能够以较高的音量输出第一音频。
在一些实施例中,第三音量与环境音量存在映射关系。电子设备在采集到环境音量后,根据映射关系查找与环境音量对应的第三音量。
在这些实施例中,映射关系可以存储在电子设备的本地存储区,由用户手动更新设置,电子设备也能够根据定位信息等其他环境参数对映射关系进行更新。根据采集到的环境音量通过映射关系能够快速查找到相应的第三音量,提高了调整输出第一音频的音量值的效率。
在另外一些实施例中,将采集到的环境音量设置为第三音量。
在这些实施例中,将第三音量设置为接近环境音量,在保证用户能够 收听到第一音频的前提下,减少对周围人员的影响。
在本申请的一些实施例中,接收对电子设备解锁输入之后,还包括:在解锁输入为预设解锁输入的情况下,响应于预设解锁输入,将电子设备解锁,并显示主界面,以及停止输出第一音频。
本申请实施例中,在电子设备接收到解锁输入后,对解锁输入的类型进行检测,在检测到解锁输入为预设解锁输入的情况下,则电子设备则不再继续显示锁定前的界面,直接显示主界面,并停止播放音频。
具体而言,电子设备在接收到解锁输入后,会根据不同的解锁输入,对电子设备解锁后所显示的界面进行调整。
在本申请的一些实施例中,响应于所述解锁输入,在检测到锁屏前的电子设备存在第一音频的输出的情况下,调整第一音频的输出参数之后,还包括:按照调整后的输出参数播放音频。
本申请实施例中,在电子设备对音频的输出参数进行调整后,电子设备能够按照调整后的输出参数继续输出音频。使用户能够在不影响其他人的情况下,继续使用电子设备播放音频。
值得说明的是,电子设备还能够在调整输出参数后,自动对播放的音频进行暂停,使用户能够选择是否以调整后的输出参数继续播放音频,提高了用户对音频播放的灵活性。
本申请实施例提供的音频调节方法,执行主体可以为音频调节装置。本申请实施例中以音频调节装置执行电子设备的解锁的方法为例,说明本申请实施例提供的电子设备的解锁的装置。
在本申请的一些实施例中提供了一种音频调节装置,图3示出了本申请实施例提供的音频调节装置的结构框图,如图3所示,音频调节装置300,其包括:
接收模块302,用于在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;
调整模块304,用于响应于解锁输入,在检测到锁屏前的电子设备存在第一音频的输出的情况下,调整第一音频的输出参数。
本申请实施例中,通过在电子设备接收到用户的解锁输入后,根据电 子设备锁屏前的音频播放状态,对解锁后的电子设备输出音频的输出参数进行调整,实现了在电子设备锁屏前处于播放音频的情况下,电子设备在解锁后自动调整输出音频的音量值,避免对周围人群造成影响的效果。
在本申请的一些实施例中,调整模块304,还用于在检测到电子设备的环境参数满足预设条件的情况下,降低第一音频的音量;其中,环境参数包括以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
采集的环境参数包括但不限于以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
本申请实施例中,通过在接收到用户对电子设备的解锁输入后,对电子设备所处环境的环境参数进行采集,并对环境参数是否满足预设条件进行判断。在判断环境满足预设条件的情况下对输出音频的音量值进行降低,避免电子设备输出较高的音量值对周围人群产生影响。在判断环境参数未满足预设条件的情况下,不再对电子设备输出的音量值进行降低。实现了根据电子设备所处的环境参数对电子设备输出音频的音量值进行准确调整,提高了调整音量值进行准确性。
在本申请的一些实施例中,在所述环境参数为所述网络信号分布信息的情况下,调整模块304具体用于:检测到电子设备所处环境中的无线网络热点的数量大于预设数量值,且电子设备所处环境中的无线网络热点的信号强度大于预设强度的情况下,调整所述第一音频的输出参数;
在所述环境参数为所述环境音量信息的情况下,调整模块304具体用于:检测到电子设备所处环境中的环境音量值小于预设音量值的情况下,调整所述第一音频的输出参数;
在所述环境参数为所述时间信息的情况下,调整模块304具体用于:检测到电子设备接收到解锁输入时的时刻在预设时间范围内的情况下,调整所述第一音频的输出参数;
在所述环境参数为所述位置信息的情况下,调整模块304具体用于:检测到电子设备接收到解锁输入时的定位信息在预设位置范围内的情况下,调整所述第一音频的输出参数。
在本申请的一些实施例中,调整模块304,还用于将第一音频的音量降低至第一音量;
调整模块304,还用于在预设时长内,将第一音量调整至第二音量,第二音量大于第一音量,第二音量小于第一音频的初始音量。
本申请实施例中,降低电子设备输出第一音频时的音量包括:将输出第一音频的音量降低至第一音量,电子设备按照第一音量输出第一音频,并且电子设备可以在预设时长内逐渐将第一音量升高至第二音量,第二音量小于等于第一音频的初始音量,且大于第一音量。通过先将第一音频的音量调低至第一音量,再逐渐将第一音量提高至第二音量,使用户在电子设备的使用过程中,能够有时间对电子设备输出音频的情况作出反应,能够以最合适的音量输出音频(防止音量过小、过大)。
本申请实施例中,通过先降低再逐渐升高的方式对第一音频的音量进行调整,不仅能够提醒用户当前电子设备处于播放第一音频的状态,还能够使用户有充足的时间对第一音频的播放进行调整,避免了解锁后电子设备突然以较大的音量输出第一音频产生的不良影响的同时,可以以用户认为更合适的音量输出第一音频。
在本申请的一些实施例中,调整模块304,还用于将第一音频的音量降低至第一音量;
调整模块304,还用于在预设时长内,将第一音量调整至第四音量,第四音量大于第一音量,其中,第四音量大于第一音频的初始音量。
本申请实施例中,在将第一音频的音量降低至第一音量后,在预设时长内将第一音频的音量逐渐升高至第四音量,并将第四音量设置为大于第一音频的初始音量。实现对用户的提醒作用,避免用户在嘈杂的环境中解锁电子设备,无法发现电子设备处于播放第一音频的状态。
音频调节装置300还包括:
显示模块,还用于在电子设备的显示屏幕上显示第一控件,第一控件用于调整第一音频的音量。
在本申请实施例中,在将电子设备输出的音量值降低至第一音量之后,在电子设备的显示屏幕上显示用于调整电子设备的音量值的第一控件。用 户通过对第一控件执行调节输入,则能够对电子设备的输出的音量值再次调节,保证了用户对电子设备输出音频的音量值调节的灵活性。
在本申请的一些实施例中,音频调节装置300还包括:
获取模块,用于获取电子设备所处环境中的网络信号分布信息;
确定模块,用于根据网络信号分布信息,确定预设时长。
本申请实施例中,网络信号分布信息包括电子设备所处环境中的网络信号的数量和网络信号的信号强度,其中,网络信号的数量和信号强度能够反应电子设备所处环境中的人员数量,以及电子设备与周围其他人员的距离。在检测到当前环境中的人员数量较多,且电子设备距离周围其他人员距离较近的情况下,将预设时长设置为较长,使电子设备在人员较为密集的环境下,缓慢升高音量,避免对周围人员产生影响。在检测到当前环境中的人员数量较少,且电子设备距离周围其他人员距离较远的情况下,将预设时长设置为较短,使电子设备快速提高音量,以对用户产生提示。
在本申请实施例中,对电子设备所处环境中的网络信号分布信息进行检测,根据检测到的网络信号分布信息能够判定电子设备所处环境中的人员密集程度,并据此对电子设备升高音量的预设时长进行设置,使电子设备升高音量的速度与当前环境的人员密集程度相关联,实现了升高音量过程中减少对周围人员的影响,并且使用户有充足的时间对电子设备播放音频做出反应。
在本申请的一些实施例中,调整模块304,还用于将第一音频的音量降低至第三音量,其中,第三音量与环境音量相关联。
本申请实施例中,降低电子设备输出第一音频的音量包括:电子设备在接收到解锁输入后,将第一音频的音量降低至第三音量,第三音量小于第一音频的初始音量。第三音量与环境音量相关联,在环境音量较小的情况下,将第三音量也设置较小,使电子设备以第三音量输出第一音频不会影响到周围人员。在环境音量较大的情况下,将第三音量设置较大,使用户在较为嘈杂的环境中能够依然能够收听电子设备输出的第一音频。
在本申请的一些实施例中,音频调节装置300,还包括:
解锁模块,用于在解锁输入为预设解锁输入的情况下,响应于预设解 锁输入,对电子设备进行解锁;
显示模块,还用于显示主界面;
控制模块,用于停止播放音频。
本申请实施例中,在电子设备接收到解锁输入后,对解锁输入的类型进行检测,在检测到解锁输入为预设解锁输入的情况下,则电子设备则不再继续显示锁定前的界面,直接显示主界面,并停止播放音频。
具体而言,电子设备在接收到解锁输入后,会根据不同的解锁输入,对电子设备解锁后所显示的界面进行调整。
在本申请的一些实施例中,音频调节装置还包括:
播放模块,用于按照调整后的输出参数播放音频。
本申请实施例中,在电子设备对音频的输出参数进行调整后,电子设备能够按照调整后的输出参数继续输出音频。使用户能够在不影响其他人的情况下,继续使用电子设备播放音频。
值得说明的是,电子设备还能够在调整输出参数后,自动对播放的音频进行暂停,使用户能够选择是否以调整后的输出参数继续播放音频,提高了用户对音频播放的灵活性。
本申请实施例中的音频调节装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的音频调节装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的音频调节装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。
本发明实施例还提供一种电子设备,被配置成用于执行上述音频调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
可选地,本申请实施例还提供一种电子设备,图4示出了根据本申请实施例的电子设备的结构框图,如图4所示,电子设备400包括处理器402和存储器404,存储器404上存储有可在处理器402上运行的程序或指令,该程序或指令被处理器402执行时实现上述方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图5为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元507,用于在电子设备处于锁屏状态下,接收用户对电子设备的解锁输入;
处理器510,用于响应于解锁输入,在检测到锁屏前的电子设备存在第一音频的输出的情况下,调整第一音频的输出参数。
本申请实施例中,通过在电子设备接收到用户的解锁输入后,根据电子设备锁屏前的音频播放状态,对解锁后的电子设备输出音频的输出参数进行调整,实现了在电子设备锁屏前处于播放音频的情况下,电子设备在 解锁后自动调整输出音频的音量值,避免对周围人群造成影响的效果。
进一步地,处理器510,用于在检测到电子设备的环境参数满足预设条件的情况下,降低第一音频的音量;其中,环境参数包括以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
本申请实施例通过在接收到用户对电子设备的解锁输入后,对电子设备所处环境的环境参数进行采集,并对环境参数是否满足预设条件进行判断。在判断环境满足预设条件的情况下对输出音频的音量值进行降低,避免电子设备输出较高的音量值对周围人群产生影响。在判断环境参数未满足预设条件的情况下,不再对电子设备输出的音量值进行降低。实现了根据电子设备所处的环境参数对电子设备输出音频的音量值进行准确调整,提高了调整音量值进行准确性。
进一步地,在所述环境参数为所述网络信号分布信息的情况下,处理器510,用于在检测到电子设备所处环境中的无线网络热点的数量大于预设数量值,且电子设备所处环境中的无线网络热点的信号强度大于预设强度的情况下,降低第一音频的音量;
进一步地,在所述环境参数为所述环境音量信息的情况下,处理器510,用于在检测到电子设备所处环境中的环境音量值小于预设音量值的情况下,降低第一音频的音量;
进一步地,在所述环境参数为所述时间信息的情况下,处理器510,用于在检测到电子设备接收到解锁输入时的时刻在预设时间范围内的情况下,降低第一音频的音量;
进一步地,在所述环境参数为所述位置信息的情况下,处理器510,用于在检测到电子设备接收到解锁输入时的定位信息在预设位置范围内的情况下,降低第一音频的音量。
进一步地,处理器510,用于将第一音频的音量降低至第一音量;
处理器510,用于在预设时长内,将第一音量调整至第二音量,第二音量大于第一音量,第二音量小于第一音频的初始音量。
本申请实施例中,通过先降低再逐渐升高的方式对第一音频的音量进行调整,不仅能够提醒用户当前电子设备处于播放第一音频的状态,还能 够使用户有充足的时间对第一音频的播放进行调整,避免了解锁后电子设备突然以较大的音量输出第一音频产生的不良影响。
进一步地,处理器510,用于将第一音频的音量降低至第一音量;
处理器510,用于在预设时长内,将第一音量调整至第四音量,第四音量大于第一音量,其中,第四音量大于第一音频的初始音量。
本申请实施例中,在将第一音频的音量降低至第一音量后,在预设时长内将第一音频的音量逐渐升高至第四音量,并将第四音量设置为大于第一音频的初始音量。实现对用户的提醒作用,避免用户在嘈杂的环境中解锁电子设备,无法发现电子设备处于播放第一音频的状态。
进一步地,处理器510,用于在预设时长内,将第一音量调整至第二音量,第二音量大于第一音量,第二音量小于第一音频的初始音量;
显示单元506,用于在电子设备的显示屏幕上显示第一控件,第一控件用于调整第一音频的音量。
在本申请实施例中,在将电子设备输出的音量值降低至第一音量之后,在电子设备的显示屏幕上显示用于调整电子设备的音量值的第一控件。用户通过对第一控件执行调节输入,则能够对电子设备的输出的音量值再次调节,保证了用户对电子设备输出音频的音量值调节的灵活性。
进一步地,处理器510,用于获取电子设备所处环境中的网络信号分布信息;
处理器510,用于根据网络信号分布信息,确定预设时长。
在本申请实施例中,对电子设备所处环境中的网络信号分布信息进行检测,根据检测到的网络信号分布信息能够判定电子设备所处环境中的人员密集程度,并据此对电子设备升高音量的预设时长进行设置,使电子设备升高音量的速度与当前环境的人员密集程度相关联,实现了升高音量过程中减少对周围人员的影响,并且使用户有充足的时间对电子设备播放音频做出反应。
进一步地,处理器510,用于将第一音频的音量降低至第三音量,其中,第三音量与环境音量相关联。
本申请实施例中,在电子设备接收到解锁输入后,将电子设备输出第 一音频的音量调整为与环境音量相关的第三音量值,使电子设备输出第一音频的音量与环境音量相符,实现在相对安静的环境中,电子设备能够以较低的音量输出第一音频,在相对嘈杂的环境中,电子设备能够以较高的音量输出第一音频。
进一步地,处理器510,还用于在解锁输入为预设解锁输入的情况下,响应于预设解锁输入,对电子设备进行解锁;
显示单元506,用于显示主界面;
处理器510,用于停止播放音频。
本申请实施例中,在对电子设备进行解锁时,用户能够通过向电子设备输入不同的解锁输入,对解锁后电子设备显示的界面进行灵活控制。在用户不希望解锁后返回最后一次使用界面的情况下,用户通过向电子设备输入预设解锁输入,能够保证使电子设备返回显示主界面,提高了用户对电子设备解锁时的隐私性。
进一步地,音频输出单元503,用于按照调整后的输出参数播放音频。
本申请实施例中,在电子设备对音频的输出参数进行调整后,电子设备能够按照调整后的输出参数继续输出音频。使用户能够在不影响其他人的情况下,继续使用电子设备播放音频。
值得说明的是,电子设备还能够在调整输出参数后,自动对播放的音频进行暂停,使用户能够选择是否以调整后的输出参数继续播放音频,提高了用户对音频播放的灵活性。
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不 再赘述。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。
处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述音频调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品可被处理器执行以实现上述音频调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述音频调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述音频调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是 手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种音频调节方法,包括:
    在电子设备处于锁屏状态下,接收用户对所述电子设备的解锁输入;
    响应于所述解锁输入,在检测到锁屏前的所述电子设备存在第一音频的输出的情况下,调整所述第一音频的输出参数。
  2. 根据权利要求1所述的音频调节方法,其中,所述调整所述第一音频的输出参数,包括:
    在检测到所述电子设备的环境参数满足预设条件的情况下,降低所述第一音频的音量;
    其中,所述环境参数包括以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
  3. 根据权利要求2所述的音频调节方法,其中,所述电子设备的环境参数满足预设条件包括:
    在所述环境参数为所述网络信号分布信息的情况下,所述电子设备所处环境中的无线网络热点的数量大于预设数量值,且电子设备所处环境中的无线网络热点的信号强度大于预设强度;
    在所述环境参数为所述环境音量信息的情况下,所述电子设备所处环境中的环境音量值小于预设音量值;
    在所述环境参数为所述时间信息的情况下,所述电子设备接收到解锁输入时的时刻在预设时间范围内;
    在所述环境参数为所述位置信息的情况下,所述电子设备接收到解锁输入时的定位信息在预设位置范围内。
  4. 根据权利要求2所述的音频调节方法,其中,所述降低所述第一音频的音量,包括:
    将所述第一音频的音量降低至第一音量;
    在预设时长内,将所述第一音量调整至第二音量,所述第二音量大于所述第一音量,所述第二音量小于所述第一音频的初始音量;
    或者,在所述电子设备的显示屏幕上显示第一控件,所述第一控件用于调整所述第一音频的音量。
  5. 根据权利要求4所述的音频调节方法,其中,所述在预设时长内,将所述第一音量调整至第二音量之前,还包括:
    获取所述电子设备所处环境中的所述网络信号分布信息;
    根据所述网络信号分布信息,确定所述预设时长。
  6. 根据权利要求2所述的音频调节方法,其中,所述降低所述第一音频的音量,包括:
    将所述第一音频的音量降低至第三音量,其中,所述第三音量与所述环境音量相关联。
  7. 一种音频调节装置,包括:
    接收模块,用于在电子设备处于锁屏状态下,接收用户对所述电子设备的解锁输入;
    调整模块,用于响应于所述解锁输入,在检测到锁屏前的所述电子设备存在第一音频的输出的情况下,调整所述第一音频的输出参数。
  8. 根据权利要求7所述的音频调节装置,还包括:
    所述调整模块,还用于在检测到所述电子设备的环境参数满足预设条件的情况下,降低所述第一音频的音量;
    其中,所述环境参数包括以下至少一项:网络信号分布信息、环境音量信息、时间信息、位置信息。
  9. 根据权利要求7所述的音频调节装置,其中,所述调整模块具体用于:
    在所述环境参数为所述网络信号分布信息的情况下,检测到电子设备所处环境中的无线网络热点的数量大于预设数量值,且电子设备所处环境中的无线网络热点的信号强度大于预设强度的情况下,调整所述第一音频的输出参数;
    在所述环境参数为所述环境音量信息的情况下,检测到电子设备所处环境中的环境音量值小于预设音量值的情况下,调整所述第一音频的输出参数;
    在所述环境参数为所述时间信息的情况下,检测到电子设备接收到解锁输入时的时刻在预设时间范围内的情况下,调整所述第一音频的输出参 数;
    在所述环境参数为所述位置信息的情况下,检测到电子设备接收到解锁输入时的定位信息在预设位置范围内的情况下,调整所述第一音频的输出参数。
  10. 根据权利要求8所述的音频调节装置,其中,
    所述调整模块,还用于将所述第一音频的音量降低至第一音量;
    所述调整模块,还用于在预设时长内,将所述第一音量调整至第二音量,所述第二音量大于所述第一音量,所述第二音量小于所述第一音频的初始音量;
    或者,所述音频调节装置还包括:
    显示模块,还用于在所述电子设备的显示屏幕上显示第一控件,所述第一控件用于调整所述第一音频的音量。
  11. 根据权利要求10所述的音频调节装置,还包括:
    获取模块,用于获取所述电子设备所处环境中的所述网络信号分布信息;
    确定模块,用于根据所述网络信号分布信息,确定所述预设时长。
  12. 根据权利要求8所述的音频调节装置,还包括:
    所述调整模块,还用于将所述第一音频的音量降低至第三音量,其中,所述第三音量与所述环境音量相关联。
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的音频调节方法的步骤。
  14. 一种电子设备,被配置成用于执行如权利要求1-6中任一项所述的音频调节方法的步骤。
  15. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的音频调节方法的步骤。
  16. 一种计算机程序产品,所述计算机程序产品可被处理器执行以实现如权利要求1-6中任一项所述的音频调节法的步骤。
  17. 一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6中任一项所述的音频调节方法的步骤。
PCT/CN2022/133949 2021-12-01 2022-11-24 音频调节方法和音频调节装置 WO2023098551A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111454424.1 2021-12-01
CN202111454424.1A CN114115793A (zh) 2021-12-01 2021-12-01 音频调节方法和音频调节装置

Publications (1)

Publication Number Publication Date
WO2023098551A1 true WO2023098551A1 (zh) 2023-06-08

Family

ID=80369610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/133949 WO2023098551A1 (zh) 2021-12-01 2022-11-24 音频调节方法和音频调节装置

Country Status (2)

Country Link
CN (1) CN114115793A (zh)
WO (1) WO2023098551A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115793A (zh) * 2021-12-01 2022-03-01 维沃移动通信有限公司 音频调节方法和音频调节装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968472A (zh) * 2006-11-13 2007-05-23 华为技术有限公司 支持播放背景音乐的方法及终端设备
CN103345929A (zh) * 2013-06-25 2013-10-09 三星电子(中国)研发中心 一种调节音量的方法和装置
CN105872746A (zh) * 2015-11-26 2016-08-17 乐视网信息技术(北京)股份有限公司 根据使用场景进行静音的方法及终端设备
CN108235087A (zh) * 2017-12-28 2018-06-29 维沃移动通信有限公司 一种视频数据的播放方法、移动终端
CN108519913A (zh) * 2018-04-04 2018-09-11 广州酷狗计算机科技有限公司 应用程序的运行状态管理方法、装置、存储介质及终端
CN108664818A (zh) * 2018-05-14 2018-10-16 维沃移动通信有限公司 一种解锁控制方法及装置
CN113039518A (zh) * 2018-12-06 2021-06-25 深圳市欢太科技有限公司 播放控制方法和装置、计算机可读存储介质、电子设备
CN114115793A (zh) * 2021-12-01 2022-03-01 维沃移动通信有限公司 音频调节方法和音频调节装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607500B (zh) * 2013-12-03 2016-09-14 中科创达软件股份有限公司 一种基于环境的通话音量调节方法及装置
CN109120770A (zh) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 终端隐私保护方法、终端及计算机可读存储介质
CN107360326B (zh) * 2017-07-17 2020-07-03 北京小米移动软件有限公司 终端音量调节处理方法及音量调节终端
CN112712815A (zh) * 2020-12-22 2021-04-27 努比亚技术有限公司 基于软件的pop音的抑制方法、终端以及计算机可读介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968472A (zh) * 2006-11-13 2007-05-23 华为技术有限公司 支持播放背景音乐的方法及终端设备
CN103345929A (zh) * 2013-06-25 2013-10-09 三星电子(中国)研发中心 一种调节音量的方法和装置
CN105872746A (zh) * 2015-11-26 2016-08-17 乐视网信息技术(北京)股份有限公司 根据使用场景进行静音的方法及终端设备
CN108235087A (zh) * 2017-12-28 2018-06-29 维沃移动通信有限公司 一种视频数据的播放方法、移动终端
CN108519913A (zh) * 2018-04-04 2018-09-11 广州酷狗计算机科技有限公司 应用程序的运行状态管理方法、装置、存储介质及终端
CN108664818A (zh) * 2018-05-14 2018-10-16 维沃移动通信有限公司 一种解锁控制方法及装置
CN113039518A (zh) * 2018-12-06 2021-06-25 深圳市欢太科技有限公司 播放控制方法和装置、计算机可读存储介质、电子设备
CN114115793A (zh) * 2021-12-01 2022-03-01 维沃移动通信有限公司 音频调节方法和音频调节装置

Also Published As

Publication number Publication date
CN114115793A (zh) 2022-03-01

Similar Documents

Publication Publication Date Title
US20220019345A1 (en) Image editing method and terminal
US20170090863A1 (en) Method, apparatus, and storage medium for controlling audio playing
RU2644130C2 (ru) Способ и устройство ввода текста
CN109241775B (zh) 一种隐私保护方法及终端
CN108334272B (zh) 一种控制方法及移动终端
CN111290810B (zh) 一种图像显示方法及电子设备
US20170003728A1 (en) Method and device for waking up a controller
CN108108111B (zh) 一种锁屏图片信息的查看方法、装置及移动终端
US20220329741A1 (en) Camera start method and electronic device
CN109272917B (zh) 屏幕亮度调节方法、装置、存储介质及电子设备
CN109684825B (zh) 一种权限管理方法及终端设备
WO2023098551A1 (zh) 音频调节方法和音频调节装置
CN109189303B (zh) 文本编辑方法及移动终端
CN111064654A (zh) 一种消息显示方法及电子设备
JP2023514751A (ja) 電力調整方法及び電子機器
CN108874450B (zh) 唤醒语音助手的方法及装置
CN108762641B (zh) 一种文本编辑方法及终端设备
US11397596B2 (en) Method and device for controlling pop-up window, electronic device, and storage medium
CN108021315B (zh) 一种控制方法及移动终端
CN110602314B (zh) 一种操作控制方法、电子设备及计算机可读存储介质
CN112291672A (zh) 扬声器的控制方法、控制装置以及电子设备
CN107491685B (zh) 一种人脸识别方法和移动终端
WO2019052287A1 (zh) 面部信息预览方法及相关产品
CN113325980B (zh) 控制方法、装置、电子设备和可读存储介质
WO2018232652A1 (zh) 具有高隐私等级的移动终端和相关产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900356

Country of ref document: EP

Kind code of ref document: A1