Volume adjusting method, volume adjusting device, electronic equipment and medium

By displaying the volume adjustment interface in an electronic device, users can finely adjust the intervals between volume levels through the volume adjustment control, solving the problem of cumbersome operation and achieving the convenience of volume adjustment.

CN119094650APending Publication Date: 2024-12-06VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411102039.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, volume adjustment is complicated to operate in electronic devices, and users need to operate the volume keys multiple times to achieve refined adjustments, resulting in poor user experience.

Method used

By displaying the volume adjustment interface, users can finely adjust the volume value interval between two adjacent volume levels through the volume adjustment controls, reducing operation steps and simplifying user operations.

Benefits of technology

It effectively reduces the number of times the user operates when adjusting the volume, simplifies the user's operation process, and improves the convenience of adjusting the volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094650A_ABST
    Figure CN119094650A_ABST
Patent Text Reader

Abstract

The invention discloses a volume adjusting method, a volume adjusting device, electronic equipment and a storage medium, and belongs to the technical field of audio processing. The volume adjustment method comprises the steps of displaying a first volume adjustment interface under the condition that a first input of a user to a first audio is received; the first volume adjustment interface comprises a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of a loudspeaker of the electronic equipment, and the first volume level and the second volume level are adjacent volume levels; receiving a second input of the user to the first volume adjustment control; and in response to the second input, based on a first volume value, adjusting the playing volume of the first audio, the first volume value being a volume value indicated by the second input in the first volume adjustment interval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of audio processing, and specifically relates to a volume adjustment method, a volume adjustment device, an electronic device and a storage medium. Background Art

[0002] As the functions of electronic devices such as mobile phones continue to improve, it is becoming more and more common to use electronic devices to play audio. In audio playback scenarios, since different users have different playback requirements, it is necessary to fine-tune the volume of audio played by electronic devices. For example, when a user listens to music before going to bed, he can play music on his mobile phone. In order to make it easier to fall asleep, the user can adjust the playback volume of the mobile phone to the minimum. When the user chooses the smallest level 1 volume to play music, he still feels that the playback volume of the mobile phone is relatively loud. At this time, it means that the user needs to fine-tune the volume of the audio played by the mobile phone, and needs to choose a volume smaller than level 1 to play music.

[0003] In the related art, in order to achieve fine adjustment of the volume, more volume levels are usually divided. However, the more volume levels are divided on the electronic device, the more times the user has to operate the volume key when using it to adjust the volume, making the user's operation more cumbersome.

[0004] For example, the maximum volume of a mobile phone is 100 decibels. If the number of volume levels is 10 and the volume interval between adjacent volume levels is 10 decibels, the user needs to operate the volume key 6 times to adjust the audio volume from 0 to 60 decibels. If the number of volume levels is increased to 30, the volume interval between adjacent volume levels can be reduced to 10 / 3 decibels. If the user wants to adjust the audio volume from 0 to 60 decibels, the user needs to operate the volume key 18 times. The number of times the user operates the volume key increases significantly, making the user operation more cumbersome. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a volume adjustment method, a volume adjustment device, an electronic device and a medium, which can simplify the user operation when adjusting the volume.

[0006] In a first aspect, an embodiment of the present application provides a volume adjustment method, comprising:

[0007] In the case of receiving a first input of a first audio by a user, displaying a first volume adjustment interface; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels;

[0008] receiving a second input from a user on the first volume adjustment control;

[0009] In response to the second input, the playback volume of the first audio is adjusted based on a first volume value, where the first volume value is the volume value indicated by the second input within the first volume adjustment interval.

[0010] In a second aspect, an embodiment of the present application provides a volume adjustment device, including: a receiving module, a display module and a processing module; wherein:

[0011] The display module is configured to display a first volume adjustment interface when receiving a first input of a first audio by a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels;

[0012] The receiving module is further configured to receive a second input from a user on the first volume adjustment control;

[0013] The processing module is used to adjust the playback volume of the first audio based on a first volume value in response to the second input received by the receiving module, where the first volume value is the volume value indicated by the second input within the first volume adjustment interval.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an 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 method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0018] In an embodiment of the present application, when a user's first input to a first audio is received, a first volume adjustment interface is displayed; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; a second input to the first volume adjustment control from the user is received; in response to the second input, the playback volume of the first audio is adjusted based on the first volume value, the first volume value being the volume value indicated by the second input within the first volume adjustment interval. With the solution of the present application, by displaying the first volume adjustment interface, the user can operate the first volume adjustment control in the first volume adjustment interface to finely adjust the audio playback volume for the volume value interval between two adjacent volume levels indicated by the first volume adjustment control, thereby reducing the operation steps for the user to adjust the volume and simplifying the user operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is one of the flow charts of the volume adjustment method provided in the embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of the audio playback interface provided in the embodiment of the present application. Figure 1 ;

[0021] Figure 3A This is a schematic diagram of the audio playback interface provided in the embodiment of the present application. Figure 2 ;

[0022] Figure 3B Schematic diagram 3 of the audio playback interface provided in the embodiment of the present application;

[0023] Figure 4 This is the second flow chart of the volume adjustment method provided in the embodiment of the present application;

[0024] Figure 5 This is the third flow chart of the volume adjustment method provided in the embodiment of the present application;

[0025] Figure 6 is a process diagram of a volume adjustment method provided in an embodiment of the present application;

[0026] Figure 7 is a structural schematic diagram of a volume adjustment device provided in an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0028] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0030] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0031] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0032] It should be noted that the volume adjustment method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the volume adjustment method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the volume adjustment method as an example.

[0033] The volume adjustment method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0034] It should be noted that the volume adjustment method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the volume adjustment method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the volume adjustment method as an example.

[0035] The volume adjustment method, volume adjustment device, electronic device and medium provided in the embodiments of the present application can be applied to audio playback scenarios. Specifically, the volume adjustment method provided in the embodiments of the present application can be applied to scenarios where a user wants to adjust the audio playback volume after an electronic device plays audio.

[0036] In a specific application scenario, the volume adjustment method provided in the embodiment of the present application can be applied to the scenario of mobile phone music playback.

[0037] In the scenario of mobile phone music playback, assuming that the number of volume levels in the mobile phone is 10, the volume interval between adjacent volume levels can be 10 decibels. For example, in the scenario where the user uses a mobile phone to play "Song 1", if the user wants to adjust the playback volume of "Song 1" from 0 to 30 decibels, the user needs to operate the volume button 3 times. Among them, the user presses the volume up button once, and the playback volume of "Song 1" increases by one volume level, and the user presses the volume down button once, and the playback volume of "Song 1" decreases by one volume level. However, when the user feels that the volume of level 3 is relatively loud, and the volume of level 2 is relatively small, that is, the volume is relatively loud when the playback volume is 30 decibels, and the volume is relatively small when the playback volume is 20 decibels, then the user needs to fine-tune the playback volume of "Song 1" between level 2 and level 3.

[0038] In order to fine-tune the playback volume of "Song 1", more volume levels can be divided for the mobile phone. For example, the number of volume levels of the mobile phone can be increased to 50, and the volume interval between adjacent volume levels is reduced to 2 decibels. However, after increasing the number of volume levels of the mobile phone to 50, the user needs to operate the volume button 10 times to adjust the playback volume of "Song 1" to 20 decibels, and then continue to operate the volume button 1 to 4 times to adjust the volume of "Song 1" to the desired volume. However, the more the number of volume levels is divided, the more times the user operates the volume button, making the user operation more cumbersome.

[0039] In the volume adjustment method, volume adjustment device, electronic device and medium provided in the present application, a first volume adjustment interface is displayed when a first input of a first audio is received from a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; a second input of the user to the first volume adjustment control is received; in response to the second input, the playback volume of the first audio is adjusted based on the first volume value, and the first volume value is the volume value indicated by the second input within the first volume adjustment interval. In the present application, by displaying the first volume adjustment interface, the user can operate the first volume adjustment control in the first volume adjustment interface to finely adjust the playback volume of the audio in the volume value interval between two adjacent volume levels indicated by the first volume adjustment control, thereby reducing the operation steps for the user to adjust the volume and simplifying the user operation.

[0040] Figure 1 The following is a flow chart of the volume adjustment method provided in the embodiment of the present application. Figure 1 As shown, the volume adjustment method provided in the embodiment of the present application may include the following steps 101 to 103:

[0041] Step 101: When receiving a first input of a first audio signal from a user, the electronic device displays a first volume adjustment interface.

[0042] In some embodiments of the present application, the first audio may be audio in an audio file. For example, the first audio may be audio in a voice conversation, a voice clip, audio, video, or other audio files.

[0043] In some embodiments of the present application, the first input is used to adjust the playback volume of the first audio. It can be understood that the first input can be an input for adjusting the playback volume of the first audio.

[0044] In some embodiments of the present application, the above-mentioned first input may include any of the following: user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.

[0045] In some embodiments of the present application, the above-mentioned gesture input may include but is not limited to at least one of the following: click gesture, sliding gesture, drag gesture, pressure recognition gesture, long press gesture, area change gesture, double press gesture, double click gesture, specific gesture input or other possible gesture inputs. The specific gesture input form can be determined according to actual needs and is not limited to this in some embodiments.

[0046] In some embodiments of the present application, the click operation may be any number of click operations. The slide operation may be a slide operation in any direction, such as slide up, slide down, slide left or slide right, etc., which is not limited in some embodiments.

[0047] In some embodiments of the present application, the first input may be an input of a user to a physical button on the electronic device. For example, the physical button on the electronic device may be a volume up button, a volume down button, or any physical button on the electronic device.

[0048] In some embodiments of the present application, when the electronic device displays an audio playback interface, a first input of a user to a first audio is received. For example, the first input may be an input of a volume adjustment control on the audio playback interface by the user.

[0049] Exemplarily, the audio playback interface may include a second volume adjustment control, which may be a second volume adjustment bar. The second volume adjustment bar may be in a strip shape or other shapes, which is not specifically limited in this embodiment.

[0050] For example, Figure 2 As shown, taking the electronic device as a mobile phone as an example, when the user wants to adjust the playback volume of "Song 1", the mobile phone can be triggered to display the playback interface 20 of "Song 1", and the playback interface 20 displays a second volume adjustment bar 211. It should be noted that the second volume adjustment bar 211 can indicate the volume value interval between the minimum preset volume level and the maximum preset volume level of the speaker of the mobile phone. The user can adjust the playback volume of "Song 1" by pressing the volume key, or by sliding or clicking the second volume adjustment bar 211.

[0051] In some embodiments of the present application, the above-mentioned first volume adjustment interface includes a first volume adjustment control, and the above-mentioned first volume adjustment control indicates a first volume adjustment interval. The above-mentioned first volume adjustment interval is a volume value interval between a first volume level and a second volume level of a speaker of the electronic device, and the above-mentioned first volume level and the above-mentioned second volume level are adjacent volume levels.

[0052] In some embodiments of the present application, the control shape of the above-mentioned first volume adjustment control can be any possible shape such as circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited in the embodiments of the present invention.

[0053] In some embodiments of the present application, the first volume adjustment control may be a first volume adjustment bar. It should be noted that the length of the first volume adjustment bar is less than or equal to the height of the first volume adjustment interface.

[0054] In some embodiments of the present application, the first volume adjustment interface may be a multimedia playback interface, such as an audio playback interface. For example, the user may drag the first volume adjustment control on the multimedia playback interface to change the display position of the first volume adjustment control on the multimedia playback interface.

[0055] In some embodiments of the present application, when the first input is a preset input, the electronic device can directly display a first volume adjustment interface dedicated to adjusting the volume, and the first volume adjustment interface includes a volume adjustment control for indicating a first volume adjustment interval.

[0056] In some embodiments of the present application, when the electronic device plays the first audio and displays a volume adjustment interface, after receiving the first input, the volume adjustment interface can be updated, and the updated volume adjustment interface is the above-mentioned first volume adjustment interface, and the first volume adjustment interface includes a volume adjustment control for indicating the first volume adjustment interval. Exemplarily, assuming that when the electronic device plays the first audio, the volume adjustment interface displayed includes a second volume adjustment control, then after receiving the user's first input, when the electronic device updates the volume adjustment interface, a first volume adjustment control is added to the volume adjustment interface, wherein the above-mentioned second volume adjustment control indicates the volume value interval corresponding to the minimum preset volume level of the speaker of the electronic device and the maximum preset volume level of the speaker, and the first volume adjustment control indicates the first volume adjustment interval.

[0057] For example, combining Figure 2 ,like Figure 3A As shown, when the mobile phone receives the first input from the user, a long first volume adjustment bar 212 is displayed on the left side of the second volume adjustment bar 212 on the playback interface of "Song 1", that is, the above-mentioned first volume adjustment control, and the first volume adjustment bar 212 includes a volume adjustment block 2121 for indicating the current volume level of "Song 1".

[0058] In some embodiments of the present application, the first input includes a first preset input or a second preset input.

[0059] In some implementations of the present application, the first preset input is an input for a user to switch between the first volume level and the second volume level. The first volume level and the second volume level are: two adjacent preset volume levels of the electronic device.

[0060] In some implementations of the present application, the second preset input is an input for increasing a current volume level of the electronic device, and the current volume level is a maximum preset volume level of the speaker.

[0061] In some embodiments of the present application, the electronic device includes a plurality of preset volume levels, and there is a fixed volume interval between each two adjacent preset volume levels.

[0062] Example 1: The number of preset volume levels of a mobile phone may be 10, and the volume interval between adjacent preset volume levels may be 10 decibels, that is, the minimum preset volume level of the mobile phone is 1, and the maximum preset volume level is 10.

[0063] In some embodiments of the present application, the above-mentioned maximum preset volume level is the maximum volume level that a user can bear in a normal audio playback scenario, that is, in some non-loud volume playback scenarios. In other words, the volume value corresponding to the maximum preset volume level is the maximum volume value that a user can bear in a normal audio playback scenario.

[0064] For example, in Example 1, when a user plays "Song 1" in a relatively quiet environment, the maximum volume of "Song 1" can reach level 10, that is, the maximum volume of "Song 1" can reach 100 decibels. The volume value of 100 decibels is the maximum volume value that a user can bear when playing "Song 1" in a relatively quiet environment.

[0065] It can be understood that when the user makes the first input to the first audio, it indicates that the user wants to finely adjust the playback volume of the first audio in the volume value range corresponding to the first volume level and the second volume level.

[0066] Exemplarily, when the first input is the first preset input, that is, the first input is an input for switching back and forth between the first volume level and the above-mentioned second volume level, since the user switches back and forth between the first volume level and the second volume level, it is determined that both the first volume level and the second volume level do not meet the user's playback needs, and the user feels that the volume corresponding to one of the first volume level and the second volume level is relatively loud, and the volume corresponding to the other volume level is relatively small, and the user wants to fine-tune the playback volume of the first audio in the volume value range between the first volume level and the second volume level.

[0067] Example 2, combined with Example 1: when the volume level of the current playback volume of "Song 1" is level 5, the user feels that the volume value corresponding to level 5 is relatively small, and the volume value corresponding to level 6 is relatively large, if the user presses the volume button in the following order within 5 seconds: volume up button → volume down button → volume up button → volume down button, it is judged that the user switches back and forth between level 5 and level 6, that is, the above input of pressing the volume button is the first preset input.

[0068] Example three, combined with Example one: when the volume level of the current playback volume of "Song 1" is level 6, the user feels that the volume value corresponding to level 6 is relatively loud, and the volume value corresponding to level 5 is relatively small. If the user presses the volume button in the following order within 5 seconds: volume down button → volume up button → volume down button → volume up button, it is judged that the user switches back and forth between level 5 and level 6, that is, the above input of pressing the volume button is the first preset input.

[0069] Example 4, combined with Example 1: when the volume level of the current playback volume of "Song 1" is level 6, the user feels that the volume value corresponding to level 6 is relatively large, and the volume value corresponding to level 5 is relatively small. If the user slides the input of the volume adjustment bar 211 in the following order within 5 seconds: slide up → slide down → slide up → slide down, it is judged that the user switches back and forth between level 5 and level 6, that is, the input of the above-mentioned sliding volume adjustment bar is the first preset input.

[0070] Exemplarily, when the first input is the second preset input, that is, the second input is an input for increasing the current volume level of the speaker, since the current volume level is the maximum preset volume level of the speaker, it is determined that the current volume level, that is, the maximum preset volume level, does not meet the user's playback needs, and the user feels that the volume corresponding to the maximum preset volume level is relatively small, and the user wants to finely adjust the playback volume of the first audio in the volume value interval between the maximum preset volume level and the second volume level to increase the playback volume of the first audio. Among them, the volume value corresponding to the second volume level is greater than the volume value corresponding to the maximum preset volume level.

[0071] It should be noted that the user can make a second preset input for the first audio in some high-volume playback scenarios. Exemplarily, the high-volume playback scenarios may include: a scenario in which the first audio is played in a noisy environment, a scenario in which the user is far away from the electronic device when the electronic device plays the first audio, and a scenario in which the user uses an elderly phone to play the first audio. In a high-volume playback scenario, even if the current volume level of the first audio has reached the maximum preset volume level, the user may still not be able to hear the first audio clearly, and the user needs to continue to increase the playback volume of the first audio. At this point, the user can perform a second preset operation on the first audio.

[0072] Example 5, combined with Example 1: when the volume level of the current playback volume of "Song 1" is level 10, if the user presses the volume up button continuously within 5 seconds, it is judged that the user increases the current playback volume level of "Song 1", that is, the above-mentioned input of pressing the volume up button is the second preset input.

[0073] Example six, combined with Example one: when the volume level of the current playback volume of "Song 1" is level 10, if the user slides up the first volume adjustment bar 212 multiple times within 5 seconds, it is judged that the user has increased the current playback volume level of "Song 1", that is, the input of sliding up the first volume adjustment bar is the second preset input.

[0074] In some embodiments of the present application, the “displaying the first volume adjustment interface” in the above step 101 may be implemented by the following step 101a:

[0075] Step 101a: When the first input is a first preset input, the electronic device displays a first volume adjustment interface.

[0076] In some embodiments of the present application, when the first input is a first preset input, the first volume level and the second volume level are: two adjacent preset volume levels of the electronic device.

[0077] In some embodiments of the present application, when the first input is a first preset input, the volume value interval indicated by the first volume adjustment control on the first volume adjustment interface is a volume value between two adjacent preset volume levels of the speaker.

[0078] Example 7, combined with Example 1: when the first volume level is level 5, and the volume value corresponding to level 5 is 50 decibels, the second volume level can be level 6, and the volume value corresponding to level 6 can be 60 decibels. The volume value interval indicated by the first volume adjustment control on the first volume adjustment interface is the volume value interval between level 10 and level 11, that is, the volume value interval indicated by the first volume adjustment control is the volume value interval between 50 decibels and 60 decibels.

[0079] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, the "displaying the first volume adjustment interface" in the above step 101 can be implemented by the following step 101b:

[0080] Step 101b: When the first input is the second preset input and the current volume level of the electronic device is at the maximum preset volume level of the electronic device, the electronic device displays a first volume adjustment interface.

[0081] Among them, the first volume level is the maximum preset volume level; the volume value corresponding to the second volume level is less than or equal to the maximum playback volume value of the speaker of the electronic device.

[0082] In some embodiments of the present application, the maximum playback volume value of the speaker can be understood as a volume threshold value at which no physical damage occurs when the speaker plays the first audio. If the playback volume of the first audio is greater than the maximum playback volume value of the speaker, physical damage will occur to the speaker.

[0083] In some embodiments of the present application, when the first input is the second preset input and the current volume level of the electronic device is at the maximum preset volume level of the electronic device, the volume value interval indicated by the first volume adjustment control on the first volume adjustment interface is the volume value interval between the maximum preset volume level of the speaker and the second volume level, and the second volume level is a volume level adjacent to the preset volume level and greater than the preset volume level, that is, the volume value corresponding to the second volume level is greater than the volume value corresponding to the maximum preset volume level.

[0084] Example 8, combined with Example 1: when the first volume level is level 10, and the volume value corresponding to level 10 is 100 decibels, the second volume level can be level 11, and the volume value corresponding to level 11 can be 140 decibels. The volume value interval indicated by the first volume adjustment control on the first volume adjustment interface is the volume value interval between level 10 and level 11, that is, the volume value interval indicated by the first volume adjustment control is the volume value interval between 100 decibels and 140 decibels.

[0085] In this way, when the first input is an input to increase the current volume level of the speaker and the current volume level of the electronic device is at the maximum preset volume level of the electronic device, the electronic device displays a first volume adjustment interface, so that the user can make a second input to the first volume adjustment control in the first volume adjustment interface to increase the playback volume of the first audio within the volume value interval corresponding to the maximum preset volume level and the second volume level, thereby satisfying the user's playback needs.

[0086] Step 102: The electronic device receives a second input from a user on a first volume adjustment control.

[0087] In some embodiments of the present application, the second input is used to adjust the playback volume of the first audio. It can be understood that the second input can be an input for adjusting the playback volume of the first audio.

[0088] In some embodiments of the present application, the second input may include any one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.

[0089] In some embodiments of the present application, the first input may be an input of a user to a physical button on the electronic device. For example, the physical button on the electronic device may be a volume up button, a volume down button, or any physical button on the electronic device.

[0090] For example, combining Example 1, Figure 3A or Figure 3B As shown, the user can adjust the playback volume of "Song 1" within the first volume adjustment range indicated by the first volume adjustment bar by pressing the volume button, or by sliding or clicking the first volume adjustment bar 212, or by dragging the volume adjustment block 2121 on the first volume adjustment bar 212.

[0091] Step 103: The electronic device adjusts the playback volume of the first audio based on the first volume value in response to the second input.

[0092] In some embodiments of the present application, the first volume value is a volume value indicated by the second input within the first volume adjustment interval.

[0093] In some embodiments of the present application, when the first volume level and the second volume level are two adjacent preset volume levels of the speaker, the electronic device can adjust the playback volume of the first audio to the volume value indicated by the second input within the first volume adjustment interval.

[0094] In some embodiments of the present application, the first volume adjustment interval includes N sub-volume levels, the first volume adjustment control includes a volume adjustment bar, the volume adjustment bar includes N volume marks, and the N volume marks correspond to the N sub-volume levels one by one. Based on this, the above step 102 can be implemented by the following step 102a:

[0095] Step 102a: The electronic device receives a second input of a target volume mark among the N volume marks by a user.

[0096] In some embodiments of the present application, the first volume value may be a volume value corresponding to the sub-volume level indicated by the target volume identifier.

[0097] In some embodiments of the present application, the electronic device may calculate the volume difference between the volume value corresponding to the second volume level and the volume value corresponding to the first volume level. Then, based on the volume difference and the number of volume identifiers N, the volume interval between the volume values ​​corresponding to the sub-volume levels indicated by adjacent volume identifiers is determined. Next, the volume value corresponding to the sub-volume level indicated by each volume identifier in the N volume identifiers is determined based on the volume interval.

[0098] In some embodiments of the present application, when the second input is the user's second input of a target volume identifier among the above-mentioned N volume identifiers, the volume value indicated by the second input within the first volume adjustment interval is the volume value corresponding to the volume level indicated by the target volume identifier, that is, the first volume value is the volume value corresponding to the volume level indicated by the target volume identifier.

[0099] For example, in combination with Example 7, the volume difference between the volume value corresponding to level 6 and the volume value corresponding to level 5 is 10. If N is 5, the 5 sub-volume levels can be 5.2, 5.4, 5.6, 5.8 and 6, and the volume interval between the volume values ​​corresponding to adjacent volume levels in the 5 sub-volume levels is 2 decibels. Therefore, the volume values ​​corresponding to each volume identifier in the 5 sub-volume levels are 52 decibels, 54 decibels, 56 decibels, 58 decibels and 60 decibels, respectively. If the user wants to fine-tune the volume of "Song 1" in the volume value interval corresponding to level 5 and level 6, such as Figure 3A As shown, when the volume adjustment block 2121 on the first volume adjustment bar 212 is currently at the volume mark 6 corresponding to the 6th volume level, the user can press the volume down key within 5 seconds to update the position of the volume adjustment block 2121 to the volume mark 5.8, that is, the user makes a second input to the volume mark 5.8, and the first volume value is 58 decibels corresponding to the 5.8th volume level.

[0100] If the volume adjustment block 2121 is currently at the volume mark 6 corresponding to the 6th level volume, the user presses the volume down key twice within 5 seconds to update the position of the volume adjustment block 2121 to 5.6, that is, the user makes a second input to the volume mark 5.6, and the first volume value is 56 decibels corresponding to the 5.6th level volume. In this way, when the user adjusts the volume of the first audio from 0 to 56 decibels, the user needs to operate the volume up key 6 times to adjust the volume of the first audio by 50 decibels, and then perform the first preset input, that is, the volume down key → volume up key → volume down key → volume up key 4 times of volume key operation, and then, after performing the volume down key operation twice, the volume of the first audio can be adjusted to 56 decibels, that is, the user needs to operate the volume key 12 times in total to adjust the volume of the first audio from 0 to 56 decibels. If the playback volume of the first audio is directly divided into 50 volume levels, and the volume interval between each adjacent volume level is 2 decibels, when the user adjusts the volume of the first audio from 0 to 56 decibels, it is necessary to operate the volume up key 28 times to adjust the volume of the first audio from 0 to 56 decibels, and the user operation is relatively cumbersome. Therefore, the volume adjustment method of the present application can greatly reduce the number of times the user operates the volume key, thereby simplifying the user operation.

[0101] For example, in combination with Example 8, the volume difference between the volume value corresponding to level 11 and the volume value corresponding to level 10 is 40. If N is 10, the 10 sub-volume levels can be level 10.1, level 10.2, level 10.3, level 10.4, level 10.5, level 10.6, level 10.7, level 10.8, level 10.9 and level 11, and the volume interval between the volume values ​​corresponding to adjacent volume levels in the 10 sub-volume levels is 4 decibels. Therefore, the volume values ​​corresponding to each volume identifier in the 10 sub-volume levels are 104 decibels, 108 decibels, 112 decibels, 116 decibels, 120 decibels, 124 decibels, 128 decibels, 132 decibels, 136 decibels and 140 decibels respectively. If the user wants to fine-tune the volume of "Song 1" in the volume value interval corresponding to level 10 and level 11, such as Figure 3B As shown, when the volume adjustment block 2121 on the first volume adjustment bar 212 is currently at the volume mark 10 corresponding to the 10-level volume, the user can press the volume up key within 5 seconds to update the position of the volume adjustment block 2121 to 10.1, that is, the user makes a second input to the volume mark 10.1, and at this time, the first volume value is 104 decibels, which corresponds to the 10.1-level volume. If the volume adjustment block 2121 is currently at the volume mark 10 corresponding to the 10-level volume, the user presses the volume up key twice within 5 seconds to update the position of the volume adjustment block 2121 to 10.2, that is, the user makes a second input to the volume mark 10.2, and at this time, the first volume value is 108 decibels, which corresponds to the 10.2-level volume.

[0102] In the volume adjustment method provided in the present application, the electronic device displays a first volume adjustment interface so that the user can operate a first volume adjustment control in the first volume adjustment interface to finely adjust the audio playback volume in a volume value interval between two adjacent volume levels indicated by the first volume adjustment control, thereby reducing the operation steps for the user to adjust the volume and simplifying the user operation.

[0103] In some embodiments of the present application, Figure 4 ,like Figure 5 As shown, before the above step 101b, the method provided in the embodiment of the present application further includes the following steps 104 and 105:

[0104] Step 104: The electronic device determines a second volume value based on the audio playback parameters of the speaker.

[0105] In some embodiments of the present application, the audio playback parameter of the above-mentioned speaker may include at least one of the maximum input power of the speaker and the maximum physical gain of the speaker.

[0106] In some embodiments of the present application, the second volume value may be determined in two possible ways.

[0107] In the first possible implementation:

[0108] In some embodiments of the present application, when the audio playback parameters of the speaker include the maximum input power of the speaker, the above step 104 may be implemented by the following steps 104a1 and 104a2:

[0109] Step 104a1: The electronic device calculates the ratio between the maximum input power of the speaker and the signal strength of the audio played by the speaker in the past, and uses the ratio as the first volume gain.

[0110] In some embodiments of the present application, the audio played historically by the speaker may be the audio played by the speaker within a preset time period before the current moment, for example, the audio played by the speaker within the past 5 seconds.

[0111] In some embodiments of the present application, the electronic device can obtain the signal strength of each sub-audio in the audio historically played by the speaker, calculate the average signal strength of all sub-audio in the audio historically played, and then use the above average as the signal strength of the audio historically played by the speaker.

[0112] Step 104a2: The electronic device uses the first volume gain to compensate for the current volume value of the first audio to obtain a third volume value, and uses the third volume value as the second volume value.

[0113] In some embodiments of the present application, the first volume gain may be understood as an upper limit of the lossless amplification gain of the speaker.

[0114] In some embodiments of the present application, the electronic device may take the sum of the first volume gain and the current volume value of the first audio as the third volume value.

[0115] In this way, the electronic device can determine the upper limit of the lossless amplification gain of the speaker by calculating the ratio between the maximum input power of the speaker and the signal strength of the audio played by the speaker in the past, and using the ratio as the first volume gain. Then, the current volume value of the first audio is compensated by using the first volume gain to obtain a third volume value, and the third volume value is used as the second volume value, so that the user can increase the playback volume of the first audio within the range between the volume value corresponding to the maximum preset volume level and the third volume value, and can ensure that after the playback volume of the first audio is increased, the output power of the speaker will not exceed the maximum output power of the speaker, thereby avoiding audio distortion when the speaker plays the first audio and improving the sound quality clarity of the first audio.

[0116] In the second possible implementation:

[0117] In some embodiments of the present application, when the audio playback parameters of the speaker include the maximum physical gain of the speaker, the above step 104 may be implemented by the following steps 104b1 and 104b2:

[0118] Step 104b1: The electronic device uses the maximum physical gain of the speaker as the second volume gain of the first audio.

[0119] In some embodiments of the present application, when the gain of the speaker reaches the maximum physical gain, the amplitude of the speaker diaphragm reaches the physical limit of the amplitude of the speaker diaphragm. In other words, when the gain of the speaker exceeds the maximum physical gain, the amplitude of the speaker diaphragm will exceed the physical limit of the amplitude of the speaker diaphragm, and the speaker will be physically damaged.

[0120] Step 104b2: The electronic device uses the second volume gain to compensate for the current volume value of the first audio to obtain a fourth volume value, and uses the fourth volume value as the second volume value, wherein the fourth volume value is greater than the third volume value.

[0121] In some embodiments of the present application, the electronic device may take the sum of the second volume gain and the current volume value of the first audio as the fourth volume value.

[0122] In some embodiments of the present application, the fourth volume value is the maximum volume value that the speaker can reach when playing the first audio.

[0123] In this way, the electronic device uses the maximum physical gain of the speaker as the second volume gain of the first audio; uses the second volume gain to compensate the current volume value of the first audio to obtain a fourth volume value, and uses the fourth volume value as the second volume value, so that the user can increase the playback volume of the first audio within the range of the volume value corresponding to the maximum preset volume level and the fourth volume value, and can ensure that the speaker will not be physically damaged after the playback volume of the first audio is increased.

[0124] Step 105: The electronic device increases a second volume level for the speaker, and uses the second volume value as a volume value corresponding to the second volume level.

[0125] In some embodiments of the present application, the second volume level is greater than the maximum preset volume level, and the second volume value is greater than the volume value corresponding to the maximum preset volume level.

[0126] For example, in combination with Example 8, the first volume level is level 10, and the volume value corresponding to level 10 is 100 decibels. The second volume level is level 11, and the volume value corresponding to level 11 is 140 decibels.

[0127] In this way, the electronic device determines the second volume value based on the audio playback parameters of the speaker; increases the second volume level for the speaker, and uses the second volume value as the volume value corresponding to the second volume level. When receiving the user's first input as the second preset input, the electronic device can display the first volume adjustment interface, so that the user can make a second input to the first volume adjustment control in the first volume adjustment interface to increase the playback volume of the first audio within the volume value range between the volume value corresponding to the maximum preset volume level and the second volume value, thereby satisfying the user's playback needs.

[0128] In some embodiments of the present application, the above step 103 may be implemented by the following step 103a or step 103b:

[0129] Step 103a: When the first volume value is less than the third volume value, the electronic device adjusts the playback volume of the first audio to the first volume value.

[0130] In some embodiments of the present application, the first volume value is less than the third volume value, that is, when the volume value indicated by the user's second input is less than the undistorted critical volume value of the speaker when playing the first audio, the playback volume of the first audio is adjusted to the first volume value.

[0131] Step 103b: When the first volume value is greater than or equal to the third volume value, the electronic device adjusts the playback volume of the first sub-audio to the first volume value and adjusts the playback volume of the second sub-audio to the third volume value.

[0132] In some embodiments of the present application, the first sub-audio is an audio in the first audio whose frequency is the natural frequency of the speaker; and the second sub-audio is an audio in the first audio except the first sub-audio.

[0133] In some embodiments of the present application, the electronic device can determine the output distortion of the speaker according to the overload distortion characteristic curve of the speaker. The overload distortion characteristic curve shows that when the speaker is overloaded, certain frequencies have higher distortion and more obvious distortion (such as vibrato), and these frequencies are the natural frequencies of the speaker.

[0134] Therefore, according to the overload distortion characteristic curve, the electronic device can control the volume value of the first sub-audio in the first audio whose frequency is the natural frequency of the speaker to a third volume value when the first volume value is greater than or equal to the third volume value, thereby controlling the output energy of the speaker at its natural frequency, thereby reducing the output distortion of the speaker and improving the user's auditory experience.

[0135] In this way, when the first volume value is greater than the third volume value, the electronic device can adjust the playback volume of the first sub-audio to the first volume value, and adjust the playback volume of the second sub-audio to the third volume value, thereby improving the user's auditory experience while satisfying the user's need to continuously increase the playback volume of the first audio.

[0136] In some embodiments of the present application, after the above step 103, the volume adjustment method provided in the embodiment of the present application further includes the following steps 106a to 106c:

[0137] Step 106a: The electronic device obtains the stable noise of the environment in which the electronic device is located.

[0138] In some embodiments of the present application, the electronic device can detect the ambient noise of the environment in which the electronic device is located through a microphone, and then obtain the stationary noise from the ambient noise. The electronic device can obtain the stationary noise from the ambient noise using an existing stationary noise detection method, which will not be described in detail in this embodiment.

[0139] Step 106b: The electronic device calculates, for a sub-audio at any frequency in the first audio, a difference between a first signal strength of the sub-audio and a second signal strength of the first stationary sub-noise.

[0140] In some embodiments of the present application, the first steady sub-noise is a steady sub-noise in the above-mentioned steady noise, whose frequency is the same as the frequency of the sub-audio.

[0141] For example, if the first signal strength of the sub-audio of the first audio at 1 kHz is -40 dB, and the second signal strength of the first stationary sub-noise of the stationary noise at 1 kHz is -37 dB, the difference between the first signal strength and the second signal strength is -3 dB.

[0142] Step 106c: The electronic device adjusts the playback volume of the sub-audio based on the difference.

[0143] In some embodiments of the present application, if the difference between the first signal strength and the second signal strength is greater than 0, the electronic device may use the difference to compensate the current playback volume of the sub-audio to adjust the playback volume of the sub-audio. Exemplarily, the electronic device may use the sum of the difference and the current playback volume as the playback volume of the sub-audio.

[0144] In some embodiments of the present application, if the difference between the first signal strength and the second signal strength is greater than 0, it means that the energy of the ambient noise at this frequency is small, that is, the volume of the first stable sub-noise is small. Therefore, after the volume of the first stable sub-noise is superimposed on the volume of the sub-audio, the user may still not be able to hear the sound of the sub-audio clearly. Therefore, the electronic device uses the difference to compensate the current playback volume of the sub-audio to adjust the playback volume of the sub-audio. Then, when the volume of the first stable sub-noise is superimposed on the compensated volume of the sub-audio, the user can hear the sound of the sub-audio clearly in the ambient noise.

[0145] In some embodiments of the present application, if the difference between the first signal strength and the second signal strength is less than or equal to 0, the electronic device does not need to compensate the current playback volume of the sub-audio and maintains the playback volume of the sub-audio at the current playback volume.

[0146] In some embodiments of the present application, if the difference between the first signal strength and the second signal strength is less than or equal to 0, it means that the energy of the ambient noise at this frequency is large, that is, the volume of the first stable sub-noise is large. The volume of the first stable sub-noise and the volume of the sub-audio are superimposed, so that the user can hear the sound of the sub-audio clearly. Therefore, there is no need to increase the playback volume of the sub-audio, that is, the speaker does not need to output additional energy at this frequency, and it will not cause serious hearing loss, so that the user can hear the sound of the sub-audio clearly in the ambient noise.

[0147] In this way, the electronic device calculates the difference between the first signal strength and the second signal strength, and then adjusts the playback volume of the sub-audio based on the upper value. It can use environmental noise to assist the playback volume of the sub-audio, thereby reducing the actual power output of the speaker, thereby saving power consumption of the electronic device and improving the battery life of the electronic device. At the same time, it can maintain the clarity of the sub-audio sound quality as much as possible.

[0148] In some embodiments of the present application, after the above step 103, the volume adjustment method provided in the embodiment of the present application further includes the following steps 107a to 107c:

[0149] Step 107a: The electronic device determines a third sub-audio from the first audio.

[0150] In some embodiments of the present application, the third sub-audio may be a strong frequency point signal in the first audio, that is, a sub-audio with a relatively large signal strength.

[0151] In some embodiments of the present application, the signal strength of the third sub-audio is greater than or equal to the first preset signal strength, or the difference between the signal strength of the third sub-audio and the signal strength of the fourth sub-audio is greater than or equal to the second preset signal strength, and the fourth sub-audio is a sub-audio corresponding to an adjacent frequency of the frequency of the third sub-audio in the first audio.

[0152] For example, assuming that the first preset signal strength is -10 dB, the third sub-audio is a sub-audio of the first audio whose signal strength is greater than or equal to -10 dB.

[0153] For example, assuming that the second preset signal strength is -20 dB, the frequency of sub-audio a in the first audio is 2 kHz, and the adjacent frequencies of 2 kHz are 2.01 kHz and 1.09 kHz. If the difference between the signal strength of sub-audio a and the signal strength of sub-audio with frequencies of 2.01 kHz and 1.09 kHz in the first audio is greater than or equal to -20 dB, then sub-audio a is the third sub-audio.

[0154] Step 107b: The electronic device determines a target frequency range using the frequency of the third sub-audio as the center frequency.

[0155] In some embodiments of the present application, the electronic device may determine the target frequency range by dividing the frequency of the third sub-audio by the preset frequency, wherein the frequency of the third sub-audio + the preset frequency is the maximum frequency in the target frequency range, the frequency of the third sub-audio minus the preset frequency is the minimum frequency in the target frequency range, and the frequency of the third sub-audio is the center frequency of the target frequency range.

[0156] For example, assuming that the frequency of the third sub audio is 2 kHz and the preset frequency is 0.2 kHz, the target frequency range is 2 kHz±0.2 kHz, that is, the target frequency range is 1.8 kHz to 2.2 kHz.

[0157] Step 107c: lower the playback volume of the fifth sub-audio.

[0158] In some embodiments of the present application, the fifth sub-audio is the audio corresponding to the target frequency range except the third sub-audio. In other words, the fifth sub-audio is the audio at a frequency point near the third sub-audio.

[0159] For example, assuming that the frequency of the third sub-audio is 2kHz and the target frequency range is 1.8kHz to 2.2kHz, the fifth sub-audio is the audio sub-signal in the audio with a frequency of 1.8kHz to 2.2kHz, excluding the third sub-audio, that is, the fifth sub-audio is the audio sub-signal in the audio with a frequency of 1.8kHz to 2.2kHz, excluding the sub-audio with a frequency of 2kHz.

[0160] In some embodiments of the present application, the electronic device lowers the playback volume of the fifth sub-audio to a first preset playback volume, or lowers the playback volume of the fifth sub-audio to a second preset playback volume.

[0161] For example, if the first preset volume is 80 decibels and the second preset playback volume is 30 decibels, if the current playback volume of the fourth sub-audio is 100 decibels, the playback volume of the fifth sub-audio is lowered to 80 decibels, or the playback volume of the fifth sub-audio is lowered by 30 decibels, that is, the playback volume of the fifth sub-audio is lowered from 100 decibels to 70 decibels.

[0162] In this way, the electronic device can reduce the energy of the fifth sub-audio by lowering the playback volume of the fifth sub-audio, thereby reducing the actual output power of the speaker, and thus improving the battery life of the electronic device. In addition, since the third sub-audio is a strong frequency signal when perceived by the human ear, and the fifth sub-audio is an audio with a frequency near the third sub-audio. Therefore, the playback volume of the fifth sub-audio will be masked by the third sub-audio. Therefore, lowering the playback volume of the fifth sub-audio will not affect the user's auditory experience, thereby improving the battery life of the electronic device while ensuring that the user's auditory experience is not affected.

[0163] The volume adjustment method provided in the embodiment of the present application is exemplarily described below using five specific scenarios as examples, namely, scenario 1, scenario 2, scenario 3, scenario 4 and scenario 5.

[0164] Scenario 1: When the current volume level is the maximum preset volume level, the playback volume of the first audio continues to increase.

[0165] Scenario 2: When the electronic device is in a noisy environment, the playing volume of the first audio is increased by using the environmental noise.

[0166] Scenario 3: A scenario in which the playback volume of the first audio is adjusted by utilizing the masking effect of the human ear.

[0167] Scenario 4: triggering the electronic device to start the volume adjustment method of scene 1, or exit the volume adjustment method of scene 1.

[0168] Scenario 5: A scenario in which the playback volume of the first audio is finely adjusted near any volume level.

[0169] In the first embodiment, for scenario 1, the volume adjustment method provided by the present application may specifically include the following steps 21 to 23.

[0170] Step 21, the electronic device monitors the user's volume adjustment behavior of the first audio in real time, especially the situation of continuously pressing the volume button. When the electronic device detects that the user continuously presses the volume up button more than twice when the current playback volume of the first audio has reached the maximum preset volume level, the lossless amplification algorithm is started.

[0171] Starting the lossless amplification algorithm means increasing the playback volume of the first audio to the physical upper limit of the speaker without damaging the sound quality. Specifically, the electronic device can calculate the ratio of the signal strength of the audio played in the past to the maximum input power of the speaker, and calculate the upper limit of the lossless amplification gain (i.e., the first volume gain mentioned above), thereby ensuring that the output power of the speaker does not exceed the maximum output power of the speaker, and avoiding audio distortion when playing the first audio.

[0172] Step 22: The electronic device may increase a second volume level for the speaker that is greater than the maximum preset volume level, and use the volume after the first volume gain compensates the current playback volume of the first audio as the volume value corresponding to the second volume level.

[0173] Step 23, the electronic device pops up a volume lossless amplification adjustment interface (i.e., the first volume adjustment interface mentioned above), the volume lossless amplification adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, and the volume value interval between the maximum preset volume level and the second volume level in the first volume adjustment interval. The user can further adjust the volume through the first volume adjustment control on the volume lossless amplification adjustment interface as needed.

[0174] For example, if the playback volume of the first audio has reached the upper limit of lossless amplification and the user still wants to continue to increase the volume, for example, when the "excessive operation of the volume up key" behavior is performed, the safe lossy amplification algorithm is started to further amplify according to the distortion characteristics of the speaker.

[0175] The safe lossy amplification algorithm is to increase the playback volume of the first audio to the physical upper limit of the speaker without causing physical damage to the speaker. After the safe lossy amplification algorithm, the speaker will overload the output when playing the first audio, that is, the sound quality of the first audio will be distorted. According to the overload distortion characteristics of the speaker, some frequency audio will have higher distortion and more obvious distortion (such as vibrato), and these frequencies are the natural frequencies of the speaker.

[0176] Therefore, after starting the safe lossy amplification algorithm, the electronic device can control the playback volume of the audio sub-signal at the inherent frequency of the first audio to a volume value corresponding to the upper limit of the lossless amplification gain, thereby effectively controlling the output energy of the audio sub-signal at the inherent frequency, thereby reducing the output power of the speaker, thereby reducing the power consumption of the electronic device while ensuring the sound quality.

[0177] In this way, by using the volume adjustment method of the present application, users can clearly feel the increase in volume in a noisy environment, improving the call and audio playback experience. In addition, users only need to press the volume button to complete the operation, without having to learn additional complicated setting steps, and the user operation is convenient. At the same time, the electronic device can judge the user's needs through the user's behavior of continuously pressing the volume button, reducing the probability of false triggering by users without needs.

[0178] In the second embodiment, for scenario 2, the volume adjustment method provided by the present application may specifically include the following steps 31 to 33.

[0179] Step 31: The electronic device monitors the ambient noise in the environment in real time, and calculates the stationary component of the ambient noise (ie, the stationary noise mentioned above).

[0180] Step 32: For the sub-audio at any frequency in the first audio, the electronic device calculates the difference between the first signal strength of the sub-audio and the second signal strength of the first stationary sub-noise. The first stationary sub-noise is the difference between the stationary noise sub-components with the same frequency as the sub-audio in the stationary noise.

[0181] Step 33: The electronic device uses the difference to compensate for the current playback volume of the first audio so that it can still be clearly heard in the ambient noise.

[0182] In this way, by using the volume adjustment method of the present application, the electronic device dynamically adjusts the playback volume of the first audio according to the change of the ambient noise, and performs adaptive adjustment according to different ambient noise levels, thereby improving the user's auditory experience in different scenarios. In addition, the volume adjustment method of Example 2 can use ambient noise to assist in amplifying the volume, which can reduce the actual power output of the speaker and save power. Furthermore, through dynamic adjustment, the clarity of the sound quality can be maintained as much as possible while ensuring the increase in volume.

[0183] In the third embodiment, for scenario 3, the volume adjustment method provided by the present application may specifically include the following steps 41 and 42.

[0184] Step 41: The electronic device identifies a strong frequency signal in the first audio.

[0185] Step 42: The electronic device reduces the playback volume of the sub-audio at the frequency point adjacent to the strong frequency point signal to reduce the actual output power of the speaker.

[0186] Exemplarily, when the electronic device reduces the playback volume of the sub-audio at the frequency point adjacent to the strong frequency point signal, it can utilize the masking effect of the human ear to ensure that the sound quality is not affected.

[0187] The human ear has a masking effect. Simply put, even if we reduce the energy of some adjacent frequencies of a strong energy frequency, the human ear is not sensitive to this because these frequencies are masked by the strong frequency when perceived by the human ear.

[0188] In this way, by adopting the volume adjustment method of the present application, the electronic device can optimize the frequency energy, so that the user can feel a more natural volume increase and reduce auditory fatigue. In addition, the electronic device reduces the playback volume of the audio sub-signal at the frequency point adjacent to the strong frequency point signal to accurately control the output power of the speaker and avoid distortion and damage caused by overload. The volume adjustment method of Example 3 is applicable to various audio playback scenarios such as music, voice calls, audio, video, etc. and has a wide range of applicability.

[0189] In the fourth embodiment, for scenario 4, the volume adjustment method provided by the present application may specifically include the following steps 51 to 53.

[0190] Step 51: The electronic device sets the operation of continuously pressing the volume plus and minus keys as a trigger condition for an additional volume amplification function.

[0191] Exemplarily, the volume additional amplification function refers to a function of continuing to increase the playback volume of the first audio when the speaker of the electronic device plays the first audio and the current volume level reaches the maximum preset volume level.

[0192] Step 52: The electronic device activates or deactivates the additional volume amplification function in response to the user's volume key operation (eg, pressing the volume up key twice in succession).

[0193] Step 53: The electronic device provides appropriate user prompts (such as vibration or sound effects) when the extra volume amplification function is activated or deactivated.

[0194] In this way, by adopting the volume adjustment method of the present application, on the one hand, the user does not need to enter a complex setting interface, and can complete the operation by simply using the volume button, which is convenient and quick. On the other hand, the design of a simple and intuitive operation method reduces the user's learning cost and can meet the needs of elderly users. Thirdly, through a simple start-stop method, users can use the volume extra amplification function more frequently to meet daily needs.

[0195] In the fifth embodiment, for scenario 5, the volume adjustment method provided by the present application may specifically include the following steps 61 to 62.

[0196] Step 61: The electronic device defines a first preset input corresponding to fine volume adjustment.

[0197] Example nine, the first preset input may be the user inputting the volume key in the following order within 5 seconds: volume up key→volume down key→volume up key→volume down key.

[0198] Example 10: The first preset input may be the user inputting the volume key in the following order within 5 seconds: volume down key→volume up key→volume down key→volume up key.

[0199] It should be noted that the above two first preset inputs are preset fixed inputs, and an interface may also be provided to allow the user to customize the first preset input.

[0200] Step 62, the electronic device monitors the user's key input on the volume button; if the user's key input on the volume button is the first preset input, a volume adjustment interface (i.e., the above-mentioned first volume adjustment interface) is triggered and popped up, and the volume adjustment interface includes a volume fine adjustment control (i.e., the above-mentioned first volume adjustment control).

[0201] For example, the user fine-tunes the audio playback volume by operating the volume fine-tuning control. Assuming that the volume level when triggered is level 6, the volume adjustment interface can be as follows: Figure 3A shown.

[0202] In this way, using the volume adjustment method of the present application, the electronic device monitors the user's key input to the volume button; if the user's key input to the volume button is the first preset input, the volume adjustment interface is triggered and popped up, so that the user can operate the volume fine control on the volume adjustment interface to achieve fine adjustment of the volume.

[0203] Next, combine Figure 6 , the volume adjustment method provided in this application is exemplified. Figure 6 As shown, the method includes the following steps 601 to 604:

[0204] Step 601: The electronic device amplifies the sound source signal in the sound source file using the volume key gain corresponding to the maximum volume key.

[0205] Exemplarily, the playback sound source file may be a voice conversation, a voice clip, an audio file, and a video file, and the sound source signal in the playback sound source file may be an audio signal in a voice conversation, a voice clip, an audio file, and a video file.

[0206] For example, when the speaker of the electronic device plays a voice conversation, voice clip, audio, video or other audio in the audio source file, if the volume level of the audio reaches the maximum preset volume level corresponding to the maximum volume button of the electronic device, then Figure 6 As shown, the electronic device can amplify the signal strength of the audio signal by calculating the product of the volume gain corresponding to the maximum preset volume level and the signal strength of the audio signal.

[0207] For example, Figure 6As shown, the volume of the first audio signal after amplifying the sound source signal in the sound source file using the volume key gain corresponding to the maximum volume key is the sound source volume.

[0208] Step 602: The electronic device uses the first audio signal amplified by the volume key gain corresponding to the maximum volume key as input of the "high volume" algorithm to continue amplifying the audio signal using the "high volume" algorithm.

[0209] For example, after the electronic device uses the volume key gain corresponding to the maximum volume key to amplify the sound source signal in the sound source file, if the volume of the first audio signal is not loud enough at this time, that is, the sound source volume is not loud enough, it is necessary to continue to amplify the first audio signal. The electronic device can use the "high volume" algorithm to continue to amplify the first audio signal. Figure 6 As shown, the existing "high volume" algorithm is to adjust the signal strength of the first audio signal based on the hardware performance of the speaker 6021, such as the overload volume threshold of the speaker, and the volume average 6022 of the audio signal played historically by the speaker. The algorithm often observes the volume of the sound source corresponding to the current first audio signal, and if the volume of the sound source is too low, it will be further amplified as a whole. In addition, the algorithm will also perform frequency response modulation and other operations based on the hardware performance of the speaker of this mobile phone to minimize the speaker overload distortion caused by the amplified volume.

[0210] For example, Figure 6 As shown, the second audio signal amplified by the "high volume" algorithm is the algorithm output signal, and the volume of the algorithm output signal is the algorithm volume.

[0211] Step 603: The electronic device inputs the second audio signal amplified by the “high volume” algorithm into a speaker, so that the speaker plays the second audio signal to obtain a play signal.

[0212] Exemplarily, the signal strength of the playback signal is the playback volume. Exemplarily, the playback signal is an audio signal that can propagate in the air. Figure 6 As shown in the figure, the audio signal propagated in the air enters the human ear, which is the auditory signal that the human ear can hear. The volume of the auditory signal heard by the human ear is the auditory volume, and the volume of the auditory signal directly affects the user experience. Although the existing "high volume" algorithm can increase the playback volume of the audio signal to a certain extent, Figure 6 As shown, it cannot meet the requirements of 6031 for strong compensation of audio with very low signal strength, noisy environments such as vegetable markets and bathrooms, long-distance playback, and loud volume playback for the elderly. In addition, the start and stop operations of enabling the existing "loud volume" algorithm are often designed to be complex, with a deep switch layer and complex user operations.

[0213] Step 604: The electronic device triggers the volume amplification algorithm in 6041 through a specific user behavior.

[0214] For example, Figure 6 As shown, the user-specific behavior may be excessive pressing of the volume up key, and the volume amplification algorithm in 6041 includes natural triggering of additional lossless amplification, safe lossy amplification, an amplification algorithm utilizing ambient noise, and an amplification algorithm based on auditory volume. In addition, through user-specific behaviors, such as excessive pressing of the volume up key, a quick and memorable high-volume start and stop method can be provided, which can meet various audio playback scenarios such as hands-free calls, headset calls, and handheld calls during video chats in Figure 6041, audio and video speaker playback, and audio and video headset playback.

[0215] It should be noted that after the electronic device executes the above step 604, it can execute the above step 602 and the above step 603.

[0216] The volume adjustment method of the present application can achieve the playback volume of continuous audio through specific user behaviors, such as excessively pressing the volume up button to naturally trigger additional lossless amplification, safe lossy amplification, an amplification algorithm that utilizes environmental noise, and an amplification algorithm based on the sense of hearing volume, and can strongly compensate for audio with very low signal strength, and meet the needs of noisy environments such as vegetable markets and bathrooms, long-distance playback, and high-volume playback for the elderly. In addition, through specific user behaviors, such as excessively pressing the volume up button, a quick and memorable high-volume start and stop method can be provided, which can meet various audio playback scenarios.

[0217] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.

[0218] The volume adjustment method provided in the embodiment of the present application can be executed by a volume adjustment device. In the embodiment of the present application, the volume adjustment device provided in the embodiment of the present application is described by taking the volume adjustment method executed by the volume adjustment device as an example.

[0219] Figure 7 A schematic diagram of the structure of the volume adjustment device provided in the embodiment of the present application is shown in FIG. Figure 7As shown, the volume adjustment device 700 includes: a display module 701, a receiving module 702 and a processing module 703; the display module 701 is used to display a first volume adjustment interface when receiving a first input of a first audio from a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; the receiving module 702 is used to receive a second input of the user to the first volume adjustment control; the processing module 703 is used to adjust the playback volume of the first audio based on a first volume value in response to the second input, and the first volume value is a volume value indicated by the second input within the first volume adjustment interval.

[0220] In some embodiments of the present application, the first volume adjustment interval includes N sub-volume levels, the first volume adjustment control includes a volume adjustment bar, the volume adjustment bar includes N volume identifiers, the N volume identifiers correspond one-to-one to the N sub-volume levels, and N is a positive integer; the receiving module 702 is specifically used to: receive a second input from a user for a target volume identifier among the N volume identifiers; wherein the first volume value is a volume value corresponding to the sub-volume level indicated by the target volume identifier.

[0221] In some embodiments of the present application, the first input is a first preset input, and the first preset input is an input for a user to switch between the first volume level and the second volume level; wherein the first volume level and the second volume level are: two adjacent preset volume levels of the electronic device.

[0222] In some embodiments of the present application, the display module 701 is specifically used to: display the first volume adjustment interface when the first input is the second preset input and the current volume level of the electronic device is at the maximum preset volume level; wherein the second preset input is an input for increasing the current volume level of the electronic device; the first volume level is the maximum preset volume level; and the volume value corresponding to the second volume level is less than or equal to the maximum playback volume value of the speaker of the electronic device.

[0223] In some embodiments of the present application, the processing module 703 is also used to determine a second volume value based on the audio playback parameters of the speaker before displaying the first volume adjustment interface when the first input is a second preset input and the current volume level of the electronic device is at the maximum preset volume level of the electronic device; increase the second volume level, and use the second volume value as the volume value corresponding to the second volume level.

[0224] In some embodiments of the present application, the processing module 703 is specifically used to: calculate the ratio between the maximum input power of the speaker and the signal strength of the historical audio played by the speaker, and use the ratio as the first volume gain; use the first volume gain to compensate the current volume value of the first audio to obtain a third volume value, and use the third volume value as the second volume value.

[0225] In some embodiments of the present application, the processing module 703 is specifically used to: when the first volume value is less than the third volume value, adjust the playback volume of the first audio to the first volume value; or, when the first volume value is greater than or equal to the third volume value, adjust the playback volume of the first sub-audio to the first volume value and adjust the playback volume of the second sub-audio to the third volume value; the first sub-audio is the audio in the first audio whose frequency is the natural frequency of the speaker; the second sub-audio is the audio in the first audio other than the first sub-audio.

[0226] In some embodiments of the present application, the processing module 703 is specifically used to: use the maximum physical gain of the speaker as the second volume gain of the first audio; use the second volume gain to compensate the current volume value of the first audio to obtain a fourth volume value, and use the fourth volume value as the second volume value.

[0227] In some embodiments of the present application, the processing module 703 is also used to obtain the steady noise of the environment in which the electronic device is located after adjusting the playback volume of the first audio based on the first volume value; for the sub-audio at any frequency in the first audio, calculate the difference between the first signal strength of the sub-audio and the second signal strength of the first steady sub-noise; the first steady sub-noise is a steady sub-noise in the steady noise with the same frequency as the sub-audio; based on the difference, adjust the playback volume of the sub-audio.

[0228] In some embodiments of the present application, the processing module 703 is also used to adjust the playback volume of the first audio based on the first volume value, and then determine a third sub-audio from the first audio, where the signal strength of the third sub-audio is greater than or equal to the first preset signal strength, or the difference between the signal strength of the third sub-audio and the signal strength of the fourth sub-audio is greater than or equal to the second preset signal strength, and the fourth sub-audio is a sub-audio corresponding to an adjacent frequency of the frequency of the third sub-audio in the first audio; determine a target frequency range with the frequency of the third sub-audio as the center frequency; and lower the playback volume of the fifth sub-audio, where the fifth sub-audio is the audio corresponding to the target frequency range, except the third sub-audio.

[0229] In the volume adjustment device provided in the present application, the volume adjustment device can display a first volume adjustment interface when receiving a first input of a first audio from a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of a speaker of an electronic device, and the first volume level and the second volume level are adjacent volume levels; receiving a second input of the user to the first volume adjustment control; in response to the second input, adjusting the playback volume of the first audio based on the first volume value, the first volume value being the volume value indicated by the second input within the first volume adjustment interval. The volume adjustment device of the present application is used to display the first volume adjustment interface, so that the user can finely adjust the audio playback volume for the volume value interval between two adjacent volume levels indicated by the first volume adjustment control by operating the first volume adjustment control in the first volume adjustment interface, thereby reducing the operation steps for the user to adjust the volume and simplifying the user operation.

[0230] The volume adjustment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmentedreality, AR) / virtual reality (virtualreality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0231] The volume adjustment device in the embodiment of the present application may be a device having 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 the embodiment of the present application.

[0232] The volume adjustment device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0233] Alternatively, if Figure 8 As shown, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores a program or instruction that can be run on the processor 801, and when the program or instruction is executed by the processor 801, each step of the above-mentioned volume adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0234] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0235] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0236] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0237] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0238] Among them, the display unit 906 is used to display a first volume adjustment interface when receiving a first input from a user for a first audio; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; the user input unit 907 is used to receive a second input from the user to the first volume adjustment control; the processor 910 is used to adjust the playback volume of the first audio based on a first volume value in response to the second input, and the first volume value is the volume value indicated by the second input within the first volume adjustment interval.

[0239] In some embodiments of the present application, the first volume adjustment interval includes N sub-volume levels, the first volume adjustment control includes a volume adjustment bar, the volume adjustment bar includes N volume identifiers, the N volume identifiers correspond to the N sub-volume levels one by one, and N is a positive integer; the user input unit 907 is specifically used to: receive a second input from a user for a target volume identifier among the N volume identifiers; wherein the first volume value is a volume value corresponding to the sub-volume level indicated by the target volume identifier.

[0240] In some embodiments of the present application, the first input is a first preset input, and the first preset input is an input for a user to switch between the first volume level and the second volume level; wherein the first volume level and the second volume level are: two adjacent preset volume levels of the electronic device.

[0241] In some embodiments of the present application, the display unit 906 is specifically used to: display the first volume adjustment interface when the first input is the second preset input and the current volume level of the electronic device is at the maximum preset volume level; wherein the second preset input is an input for increasing the current volume level of the electronic device; the first volume level is the maximum preset volume level; and the volume value corresponding to the second volume level is less than or equal to the maximum playback volume value of the speaker of the electronic device.

[0242] In some embodiments of the present application, the processor 910 is further used to determine a second volume value based on the audio playback parameters of the speaker before displaying the first volume adjustment interface when the first input is a second preset input and the current volume level of the electronic device is at the maximum preset volume level of the electronic device; increase the second volume level, and use the second volume value as the volume value corresponding to the second volume level.

[0243] In some embodiments of the present application, the processor 910 is specifically used to: calculate the ratio between the maximum input power of the speaker and the signal strength of the historical audio played by the speaker, and use the ratio as the first volume gain; use the first volume gain to compensate the current volume value of the first audio to obtain a third volume value, and use the third volume value as the first volume value.

[0244] In some embodiments of the present application, the processor 910 is specifically used to: when the first volume value is less than the third volume value, adjust the playback volume of the first audio to the first volume value; or, when the first volume value is greater than or equal to the third volume value, adjust the playback volume of the first sub-audio to the first volume value and adjust the playback volume of the second sub-audio to the third volume value; the first sub-audio is the audio in the first audio whose frequency is the natural frequency of the speaker; the second sub-audio is the audio in the first audio other than the first sub-audio.

[0245] In some embodiments of the present application, the processor 910 is specifically used to: use the maximum physical gain of the speaker as the second volume gain of the first audio; use the second volume gain to compensate the current volume value of the first audio to obtain a fourth volume value, and use the fourth volume value as the second volume value.

[0246] In some embodiments of the present application, the processor 910 is also used to obtain the steady noise of the environment in which the electronic device is located after adjusting the playback volume of the first audio based on a first volume value; for the sub-audio at any frequency in the first audio, calculate the difference between the first signal strength of the sub-audio and the second signal strength of the first steady sub-noise; the first steady sub-noise is a steady sub-noise in the steady noise with the same frequency as the sub-audio; and adjust the playback volume of the sub-audio based on the difference.

[0247] In some embodiments of the present application, the processor 910 is also used to adjust the playback volume of the first audio based on the first volume value, and then determine a third sub-audio from the first audio, where the signal strength of the third sub-audio is greater than or equal to the first preset signal strength, or the difference between the signal strength of the third sub-audio and the signal strength of the fourth sub-audio is greater than or equal to the second preset signal strength, and the fourth sub-audio is a sub-audio corresponding to an adjacent frequency of the frequency of the third sub-audio in the first audio; determine a target frequency range with the frequency of the third sub-audio as the center frequency; and lower the playback volume of the fifth sub-audio, where the fifth sub-audio is the audio corresponding to the target frequency range, except the third sub-audio.

[0248] In the electronic device provided by the present application, the electronic device can display a first volume adjustment interface when receiving a first input of a first audio from a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of a speaker of the electronic device, and the first volume level and the second volume level are adjacent volume levels; receiving a second input of the user to the first volume adjustment control; in response to the second input, adjusting the playback volume of the first audio based on the first volume value, the first volume value being the volume value indicated by the second input within the first volume adjustment interval. The electronic device provided by the present application displays the first volume adjustment interface, so that the user can finely adjust the audio playback volume for the volume value interval between two adjacent volume levels indicated by the first volume adjustment control by operating the first volume adjustment control in the first volume adjustment interface, thereby reducing the operation steps for the user to adjust the volume and simplifying the user operation.

[0249] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0250] The memory 909 can be used to store software programs and various data. The memory 909 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 for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0251] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.

[0252] The embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned volume adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0253] The processor is the processor in the electronic device described in the above embodiment. 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.

[0254] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement each process of the above-mentioned volume adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0255] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0256] The embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned volume adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0257] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that 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, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0258] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0259] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A volume adjustment method, applied to electronic equipment, characterized in that: include: When receiving a first input of a first audio signal from a user, displaying a first volume adjustment interface; The first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; receiving a second input from a user on the first volume adjustment control; In response to the second input, the playback volume of the first audio is adjusted based on a first volume value, where the first volume value is the volume value indicated by the second input within the first volume adjustment interval.

2. The method according to claim 1, characterized in that The first volume adjustment interval includes N sub-volume levels, the first volume adjustment control includes a volume adjustment bar, the volume adjustment bar includes N volume identifiers, the N volume identifiers correspond to the N sub-volume levels one by one, and N is a positive integer; The receiving a second input of the user to the first volume adjustment control includes: receiving a second input from a user regarding a target volume identifier among the N volume identifiers; The first volume value is a volume value corresponding to the sub-volume level indicated by the target volume identifier.

3. The method according to claim 1 or 2, characterized in that: The first input is a first preset input, and the first preset input is an input for a user to switch between the first volume level and the second volume level; Wherein, the first volume level and the second volume level are: two adjacent preset volume levels of the electronic device.

4. The method according to claim 1 or 2, characterized in that: The displaying of the first volume adjustment interface includes: When the first input is a second preset input and the current volume level of the electronic device is at a maximum preset volume level, displaying the first volume adjustment interface; Among them, the second preset input is an input for increasing the current volume level of the electronic device; the first volume level is the maximum preset volume level; and the volume value corresponding to the second volume level is less than or equal to the maximum playback volume value of the speaker of the electronic device.

5. The method according to claim 4, characterized in that When the first input is a second preset input and the current volume level of the electronic device is at a maximum preset volume level of the electronic device, before displaying the first volume adjustment interface, the method further includes: Determining a second volume value based on the audio playback parameters of the speaker; The second volume level is increased, and the second volume value is used as the volume value corresponding to the second volume level.

6. The method according to claim 5, characterized in that The determining a second volume value based on the audio playback parameter of the speaker comprises: Calculating a ratio between a maximum input power of the speaker and a signal strength of a historically played audio of the speaker, and using the ratio as a first volume gain; A first volume gain is used to compensate a current volume value of the first audio to obtain a third volume value, and the third volume value is used as the second volume value.

7. The method according to claim 6, characterized in that The step of adjusting the playback volume of the first audio based on a first volume value in response to the second input includes: When the first volume value is less than the third volume value, adjusting the playback volume of the first audio to the first volume value, or, When the first volume value is greater than or equal to the third volume value, the playback volume of the first sub-audio is adjusted to the first volume value, and the playback volume of the second sub-audio is adjusted to the third volume value; the first sub-audio is the audio in the first audio whose frequency is the natural frequency of the speaker; the second sub-audio is the audio in the first audio other than the first sub-audio.

8. The method according to claim 5, characterized in that The determining a second volume value based on the audio playback parameter of the speaker comprises: Using the maximum physical gain of the speaker as the second volume gain of the first audio; The second volume gain is used to compensate the current volume value of the first audio to obtain a fourth volume value, and the fourth volume value is used as the second volume value.

9. The method according to claim 1, characterized in that: After adjusting the playback volume of the first audio based on the first volume value, the method further includes: Acquire the stable noise of the environment in which the electronic device is located; For a sub-audio at any frequency in the first audio, calculating a difference between a first signal strength of the sub-audio and a second signal strength of a first stationary sub-noise; the first stationary sub-noise is a stationary sub-noise in the stationary noise having the same frequency as the sub-audio; Based on the difference, the playback volume of the sub-audio is adjusted.

10. The method according to claim 1, characterized in that After adjusting the playback volume of the first audio based on the first volume value, the method further includes: Determine a third sub-audio frequency from the first audio frequency, wherein a signal strength of the third sub-audio frequency is greater than or equal to a first preset signal strength, or a difference between a signal strength of the third sub-audio frequency and a signal strength of a fourth sub-audio frequency is greater than or equal to a second preset signal strength, and the fourth sub-audio frequency is a sub-audio frequency corresponding to an adjacent frequency of the third sub-audio frequency in the first audio frequency; Determine a target frequency range by taking the frequency of the third sub-audio as the center frequency; The playback volume of the fifth sub-audio is lowered, where the fifth sub-audio is the audio corresponding to the target frequency range, excluding the third sub-audio.

11. A volume adjustment device, applied to electronic equipment, characterized in that: include: Display module, receiving module and processing module; wherein, The display module is configured to display a first volume adjustment interface when receiving a first input of a first audio by a user; the first volume adjustment interface includes a first volume adjustment control, the first volume adjustment control indicates a first volume adjustment interval, the first volume adjustment interval is a volume value interval between a first volume level and a second volume level of the electronic device, and the first volume level and the second volume level are adjacent volume levels; The receiving module is further configured to receive a second input from a user on the first volume adjustment control; The processing module is used to adjust the playback volume of the first audio based on a first volume value in response to the second input received by the receiving module, where the first volume value is the volume value indicated by the second input within the first volume adjustment interval.

12. The device according to claim 11, characterized in that The processing module is specifically configured to: after adjusting the playback volume of the first audio based on the first volume value, obtain the stable noise of the environment in which the electronic device is located; For a sub-audio at any frequency in the first audio, calculate a difference between a first signal strength of the sub-audio and a second signal strength of a first stationary sub-noise, where the first stationary sub-noise is a stationary noise sub-component in the stationary noise having the same frequency as the sub-audio; Based on the difference, the playback volume of the sub-audio is adjusted.

13. The device according to claim 11, characterized in that The processing module is specifically used for: After adjusting the playback volume of the first audio based on the first volume value, determining a third sub-audio from the first audio, wherein the signal strength of the third sub-audio is greater than or equal to the first preset signal strength, or the difference between the signal strength of the third sub-audio and the signal strength of the fourth sub-audio is greater than or equal to the second preset signal strength, and the fourth sub-audio is a sub-audio corresponding to a frequency adjacent to the frequency of the third sub-audio in the first audio; Determine a target frequency range by taking the frequency of the third sub-audio as the center frequency; The playback volume of the fifth sub-audio is lowered, where the fifth sub-audio is the audio corresponding to the target frequency range, excluding the third sub-audio.

14. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the volume adjustment method according to any one of claims 1 to 10 are implemented.

15. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the volume adjustment method according to any one of claims 1 to 10 are implemented.