Volume control method and device, storage medium and electronic equipment
By identifying the running scene in the electronic device and setting the extended volume area, the problem of too low volume of the electronic device is solved, and higher playback volume and adaptive sound quality management are achieved.
Patent Information
- Application Number
- CN202310945747.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-14
AI Technical Summary
The volume of existing electronic devices is too low during operation to meet the user's hearing needs in noisy environments or multiple people's use scenarios.
By identifying the preset operating scene, the extended volume area is set so that the target volume of the electronic device is greater than the maximum volume of the initial volume area, and the electronic device is controlled to run at the target volume.
It further increases the playback volume based on the initial volume area, meets the user's hearing needs in noisy environments or multiple people's use scenarios, and avoids the problem of poor sound quality.
Smart Images

Figure CN119440454A_ABST
Abstract
Description
Technical Field
[0001] The technical solution disclosed herein relates to the technical field of electronic device control, and in particular to a volume control method, device, storage medium and electronic device. Background Art
[0002] In the prior art, manufacturers usually preset a maximum volume allowed for playback in smart terminals, and the volume adjusted by users cannot exceed this maximum volume. As a result, when smart terminals are running functions such as playing movies, music, and online meetings, even if the volume is played at the maximum level, the volume is likely to be too low. Summary of the invention
[0003] In view of this, the present disclosure provides a volume control method, device, storage medium and electronic device to solve the problem of too low volume of electronic devices.
[0004] According to a first aspect of an embodiment of the present disclosure, a volume control method is provided, which is applied to an electronic device, and the method includes:
[0005] In response to determining that the electronic device is in a preset operation scenario, an extended volume area is set; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device;
[0006] The electronic device is controlled to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
[0007] According to a second aspect of an embodiment of the present disclosure, a volume control device is provided, which is applied to an electronic device, and the device includes:
[0008] A setting module, configured to set an extended volume area in response to determining that the electronic device is in a preset operation scenario; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device;
[0009] A control module is used to control the electronic device to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
[0010] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0011] processor;
[0012] a memory for storing processor-executable instructions;
[0013] Wherein, the processor is configured to implement the steps of any volume control method described in the first aspect by running the executable instructions.
[0014] According to a fourth aspect of an embodiment of the present disclosure, there is provided a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of any volume control method described in the first aspect are implemented.
[0015] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0016] Generally speaking, the maximum volume of the initial volume area of the electronic device is the maximum volume allowed to be played by the electronic device. At this time, even if the user wants to set a volume to be set that is greater than the maximum volume in the initial volume area for the electronic device, this volume to be set cannot take effect in the electronic device.
[0017] Taking into account that when the playback volume of an electronic device exceeds the current maximum volume limit, the sound quality and clarity of the sound output by the electronic device will be relatively poor, therefore, in order to increase the maximum volume allowed for playback by the electronic device, the operating scenario of the electronic device can be confirmed. If the electronic device is in a preset operating scenario, it is considered that the electronic device can accept sacrificing sound quality to increase the volume in this operating scenario. At this time, an extended volume area can be set for the electronic device, and the electronic device can be controlled to operate at a target volume that matches the user's volume to be set.
[0018] Since the target volume is within the extended volume range, the user can further increase the playback volume based on the initial volume range by controlling the electronic device to operate at the target volume.
[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] Figure 1 is a flow chart of a volume control method according to an exemplary embodiment of the present disclosure;
[0022] Figure 2a is a schematic diagram of a volume control method according to an exemplary embodiment of the present disclosure;
[0023] Figure 2b is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure;
[0024] Figure 2c is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure;
[0025] Figure 3a is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure;
[0026] Figure 3b is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure;
[0027] Figure 4 is a flow chart of a volume control method according to an exemplary embodiment of the present disclosure;
[0028] Figure 5 is a structural schematic diagram of a volume control device according to an exemplary embodiment of the present disclosure;
[0029] Figure 6 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0031] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0032] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0033] Electronic devices refer to devices that use electronic technology principles and electronic components to achieve various functions. They use electronic signals such as current, voltage and electromagnetic fields for information processing, control and communication. Common electronic devices include mobile phones, computers, tablets, televisions, audio equipment, cameras, wireless routers, game consoles, etc. These devices play an important role in our daily lives, allowing users to carry out various activities such as communication, entertainment, work and study.
[0034] In the present disclosure, the electronic device at least includes an audio source playing module, and the user can set the volume of the electronic device, and the electronic device can play the audio according to the volume set by the user.
[0035] Generally, users have certain requirements for sound quality when using electronic devices (for example, listening to high-quality songs, watching videos, playing games and listening to the sound details in the game scene, etc.). For electronic devices, when the volume of the electronic device exceeds a certain volume, the sound quality of the electronic device will obviously deteriorate, such as the occurrence of noise, broken sound, harsh sound, etc. Therefore, in order to ensure the user's use effect, manufacturers usually set the maximum volume of electronic devices according to the sound quality of the electronic device.
[0036] In the prior art, when the manufacturer sets the maximum volume allowed for playback for the smart terminal, the volume adjusted by the user cannot exceed this maximum volume. This will lead to the following problems:
[0037] When users listen to electronic devices in a noisy environment, it is difficult to hear clearly even if they play at the highest volume (out loud).
[0038] Or, when multiple users are listening to an electronic device together, for example, multiple users are holding an online meeting through an electronic device, or multiple users are talking on the same electronic device at the same time, even if the volume is played at the highest level, it cannot be guaranteed that each user can clearly hear the content played by the electronic device.
[0039] In order to solve the above problems, the present disclosure provides a volume control method, device, storage medium and electronic device. For ease of understanding, the following is a detailed description taking a mobile phone as an example of the electronic device:
[0040] Figure 1 is a flow chart of a volume control method according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps:
[0041] Step 101: in response to determining that the electronic device is in a preset operation scenario, setting an extended volume area; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device.
[0042] Each preset operation scenario has relatively low requirements for sound quality, and the sound quality of the electronic device when it is running at any volume in the extended volume area meets the sound quality required by the operation scenario. The operation scenario can be a few applications (application software) selected by the user or the electronic device according to the functions of each application. For example, if the video player software A is set as an application that meets the operation scenario, then during the period when the electronic device runs an application such as the video player software A that meets the operation scenario, the electronic device is considered to be in the preset operation scenario. Alternatively, the operation scenario is preset first, and then it is determined whether the electronic device is in the preset operation scenario based on the functions provided by the electronic device.
[0043] Exemplarily, the preset operation scenarios include, but are not limited to: human voice communication scenarios (such as online meetings, audio and video calls, etc.), or human voice playback scenarios (such as simulated human voice output, playback of pre-recorded human voice signals, etc.). When the electronic device is running application B, it is providing the user with a "call" function. At this time, it is considered that the "call" function of the electronic device belongs to the human voice communication scenario, so it is determined that the electronic device is in the preset operation scenario.
[0044] When an electronic device is in a preset operating scenario, the user needs to pay more attention to clearly hearing the content played by the electronic device (such as call content, meeting content, etc.), rather than paying attention to the sound quality of the electronic device (sound level, details, etc.). Therefore, an extended volume area can be set for the electronic device so that the user can further set a higher playback volume for the electronic device within the extended volume area.
[0045] Exemplarily, when the electronic device is in a preset operation scenario, the user may not always need to increase the volume allowed to be played by the electronic device to the highest volume in the extended volume range, so the method further includes the following steps:
[0046] A volume setting operation for setting the volume of the electronic device to the volume to be set is received.
[0047] Among them, the volume setting operation can be generated after manual setting by the user (such as pressing a button, sliding the screen, clicking the screen, manual input, etc.), or it can be intelligently generated by the electronic device. For example, the volume setting operation can be that the electronic device senses the current ambient volume and automatically calculates the value of the volume to be set, generating a volume setting operation including the volume to be set.
[0048] The following schematic diagrams schematically introduce several methods for generating volume setting operations. Figure 2a is a schematic diagram of a volume control method according to an exemplary embodiment of the present disclosure, such as Figure 2aAs shown, the electronic device 20 includes an initial volume area 23, a first volume control 21 for adjusting the volume of the electronic device (the first volume control 21 is used to reduce the volume), when the user does not trigger the first volume control 21, the playback volume of the electronic device 20 is the first volume 24 (assuming that the volume value of the first volume is 50), after the user triggers the first volume control 21, a volume setting operation is generated, and at this time, the volume value corresponding to the second volume 25 (assuming that the volume value of the second volume is 40) is determined as the volume to be set. After the volume setting operation takes effect, the playback volume of the electronic device 20 is reduced from the first volume 24 to the second volume 25.
[0049] Figure 2b is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure, such as Figure 2b As shown, the electronic device 20 includes an initial volume area 23 and a second volume control 22 for adjusting the volume of the electronic device (the second volume control 22 is used to increase the volume). When the user does not trigger the second volume control 22, the playback volume of the electronic device 20 is the third volume 26 (assuming that the volume value of the third volume is 60). After the user triggers the second volume control 22, a volume setting operation is generated, and at this time, the volume value corresponding to the fourth volume 27 (assuming that the volume value of the fourth volume is 70) is determined as the volume to be set. After the volume setting operation takes effect, the playback volume of the electronic device 20 is increased from the third volume 26 to the fourth volume 27.
[0050] Figure 2c is a schematic diagram of another volume control method according to an exemplary embodiment of the present disclosure, such as Figure 2c As shown, the electronic device 20 includes an initial volume area 23, and when the playback volume of the electronic device is the fifth volume 28, when the user's finger satisfies a specified condition (e.g., triggered x times, or triggered for y seconds) at the position of the sixth volume 29 in the initial volume area 23, a volume setting operation is generated, and the volume value corresponding to the sixth volume 29 is determined as the volume to be set. Alternatively, when the user's finger slides from the position of the fifth volume 28 to the position of the sixth volume 29 in the initial volume area, a volume setting operation is generated, and the volume value corresponding to the sixth volume 29 is determined as the volume to be set. After the volume setting operation takes effect, the playback volume of the electronic device 20 is also increased from the fifth volume 28 to the sixth volume 29.
[0051] In the process of sliding, if the position where the user finally stops sliding exceeds the highest volume of the initial volume area 23 (assuming Figure 2cIn the example, the sixth volume 29 in the figure is above the initial volume area 23, not shown in the figure), then the volume to be set is actually greater than the highest volume of the initial volume area 23. At this time, if the extended volume area is not set in the electronic device, the volume setting operation triggered by the user through sliding cannot take effect in the electronic device, that is, the electronic device cannot play according to the volume to be set.
[0052] After obtaining the volume to be set in the volume setting operation by the above method, when executing step 101 in response to determining that the electronic device is in a preset operation scene, setting the extended volume area includes the following steps:
[0053] When it is determined that the volume to be set is greater than the highest volume in the initial volume area and the electronic device is in a preset operation scene, an extended volume area is set.
[0054] Assuming that the value interval of the volume in the initial volume area set by the electronic device is [0, 100], when the volume to be set is 0, it is considered that the volume to be set is within the initial volume area, and the electronic device is set to play silently. When the volume to be set is 100, it is considered that the volume to be set is within the initial volume area, and the electronic device is set to play at the volume corresponding to the value "100" (at this time, the volume to be set and the playback volume of the electronic device are both the maximum volume of the initial volume area). If the volume to be set is greater than 100 (for example, 101, 150), it is considered that the volume to be set is greater than the maximum volume of the initial volume area.
[0055] In this case, when it is determined that the volume to be set is greater than the highest volume in the initial volume area and the electronic device is in a preset operating scenario, it is considered that the user does have a need to increase the playback volume of the electronic device in this operating scenario, so an extended volume area is set.
[0056] The extended volume area can be a volume area that includes the initial volume area, such as Figure 3a As shown, the electronic device 20 includes an initial volume area 23 and an extended volume area 31 , wherein the extended volume area 31 includes the initial volume area 23 .
[0057] Alternatively, the extended volume area may be another volume area independent of the initial volume area, such as Figure 3b As shown: the electronic device 20 includes: an initial volume area 23 and an extended volume area 31, wherein the extended volume area 31 is independent of the initial volume area 23. The extended volume area 31 is arranged above the initial volume area 23, and at this time, the lowest volume of the extended volume area 31 is equal to the maximum volume of the initial volume area 23. In the present disclosure, the extended volume area and the initial volume area are independent volume areas as an example for introduction.
[0058] By setting the extended volume area, the user can further control the electronic device to increase the playback volume based on the initial volume area.
[0059] Step 102, controlling the electronic device to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
[0060] Before controlling the electronic device to operate at the target volume, the target volume is further determined through the following two situations:
[0061] Case 1: when it is determined that the volume to be set is greater than the highest volume in the initial volume area and less than or equal to the highest volume in the extended volume area, the volume to be set is set as the target volume.
[0062] Or in case 2, when the volume to be set is greater than the highest volume in the extended volume area, the highest volume in the extended volume area is set as the target volume.
[0063] After setting the extended volume area, even if the volume to be set in the volume setting operation is greater than the highest volume in the initial volume area, the volume setting operation can take effect, thereby breaking through the highest volume in the initial volume area and further increasing the playback volume of the electronic device.
[0064] Considering that the maximum volume in the extended volume area is also limited, when making the volume setting operation effective, it is necessary to determine the target volume for making the volume setting operation effective according to the relationship between the volume to be set and the maximum volume in the extended volume area.
[0065] When the volume to be set is greater than the highest volume in the initial volume area and less than or equal to the highest volume in the extended volume area, it meets the first situation. Within this range, the electronic device can play at the volume to be set as expected by the user. Therefore, the target volume at which the volume setting operation takes effect is equal to the volume to be set.
[0066] When the volume to be set is greater than the maximum volume of the extended volume, it meets the second situation. At this time, the volume to be set has exceeded the maximum volume currently allowed to be played by the electronic device (the maximum volume of the extended volume area, which also belongs to the extended volume area). At this time, no matter what the value of the volume to be set is, the target volume is set to the maximum volume of the extended volume area.
[0067] Through the above method, the target volume for making the volume setting operation effective can be determined, and the electronic device can be controlled to operate at the target volume. When the electronic device needs to play audio, it plays at the target volume.
[0068] In a feasible implementation manner, the operation scenario at least includes: a human voice communication scenario.
[0069] Figure 4 is a flow chart of a volume control method according to an exemplary embodiment of the present disclosure. Figure 4 As shown, when executing step 102 to control the electronic device to operate at the target volume, the following steps are included:
[0070] Step 401: for the received audio to be played in the human voice communication scene, determine a preset frequency interval that matches the frequency of the human voice signal.
[0071] When the electronic device is in a human voice communication scene, the electronic device will receive the audio in the human voice communication scene in real time (or periodically), and needs to play the audio in real time, and use the audio as the audio to be played.
[0072] Since it is a human voice communication scenario, the human voice signal in the audio to be played is mainly played, so it is necessary to determine a preset frequency interval that matches the frequency of the human voice signal. There are many ways to set the preset frequency interval, and several examples are introduced below:
[0073] Method 1: Setting based on experience. Considering that human voice signals are usually in the mid-frequency range (eg, frequencies from 300 Hz to 3000 Hz), the preset frequency interval can be set to [300 Hz, 3000 Hz].
[0074] Method 2: Automatically set according to the frequency distribution of the audio to be played:
[0075] That is, when executing step 401 to determine the preset frequency interval matching the frequency of the human voice signal, the following steps are included:
[0076] Extracting human voice features from the audio to be played; determining at least one frequency corresponding to a signal of the human voice features; and determining the preset frequency interval based on the at least one frequency.
[0077] Automatically extract the vocal features in the audio to be played, analyze the vocal features, and obtain the frequency corresponding to each vocal feature.
[0078] For example, the human voice features extracted from the audio to be played in the first period correspond to three frequencies, namely:
[0079] 1300Hz, 1200Hz, 1500Hz.
[0080] Then you can set the current preset frequency range to [1200Hz, 1500Hz]; or set it to [1000Hz, 1700Hz] to avoid errors.
[0081] Alternatively, if the extracted human voice feature corresponds to one frequency: 1200 Hz, then 1200 Hz can be used as an average value to set the preset frequency interval, for example, [1000 Hz, 1600 Hz]. Other setting methods can also be used, and the present disclosure does not limit this.
[0082] Since the content of the audio to be played changes in real time, the preset frequency range can also change dynamically and periodically to adapt to the human voice frequency in the audio to be played in different time periods.
[0083] Step 402: Filter out the audio signals outside the preset frequency range in the audio to be played, so as to obtain the processed audio to be played.
[0084] Since the preset frequency range matches the human voice, and the audio to be played is the audio to be played in the human voice communication scenario, it is believed that when it is really necessary to increase the volume and ignore the sound quality for playback, it is mainly necessary to highlight the human voice signal in the audio to be played, so the audio signal outside the preset frequency range needs to be filtered out.
[0085] For example, the preset frequency interval is [1200Hz, 1500Hz], then the audio signal with a frequency less than 1200Hz or greater than 1500Hz can be regarded as noise and filtered out. After filtering out the noise, the signal with a frequency greater than or equal to 1200Hz and less than or equal to 1500Hz can be regarded as a human voice signal, highlighting the human voice signal part.
[0086] Step 403: Play the processed audio to be played at the target volume.
[0087] After obtaining the audio to be played, when the electronic device is operated at the target volume, the processed audio to be played can be operated at the target volume.
[0088] Through the above method, the problem of poor sound quality caused by increasing the volume can be avoided when the volume is increased, and the human voice information in the human voice communication scene can be mainly highlighted.
[0089] In one possible embodiment, the electronic device includes a volume up control.
[0090] The volume increase control may be a physical key or a virtual key. When the volume increase control is a physical key, the volume increase control for increasing the volume may be determined according to the layout of the physical keys of the electronic device.
[0091] When the volume up control is a virtual button, see Figure 2b , the second volume control 22 is regarded as an exemplary volume up control. Alternatively, see Figure 3a, the initial volume area 23 and the extended volume area 31 are regarded as volume adjustment controls. When the user slides, touches, or interacts through sight in the initial volume area 23 and the extended volume area 31, the volume can be increased or decreased. Therefore, when the initial volume area 23 and the extended volume area 31 are used to increase the volume, they can be regarded as volume increase controls.
[0092] When it is determined in the execution step that the volume to be set in the volume setting operation is greater than the highest volume in the initial volume area, the following steps are included:
[0093] When it is determined that the volume to be set is greater than or equal to the highest volume in the initial volume area, the triggering condition of the volume increase control is detected; when it is determined that the triggering condition satisfies a continuous triggering condition, it is determined that the volume to be set is greater than the highest volume in the initial volume area.
[0094] The continuous triggering conditions include but are not limited to: the triggering duration reaches a specified duration; or the triggering times reaches a specified number of times.
[0095] When the highest volume allowed by the electronic device is the highest volume in the initial volume range, and the user triggers the volume increase control to generate a volume setting operation, there may be the following two situations:
[0096] Case 1: the volume to be set = the highest volume in the initial volume area (it may be that the volume to be set cannot be set to a value greater than the highest volume in the initial volume area due to limitations of the electronic device).
[0097] If the volume increase control meets the continuous trigger condition, it is considered that although the volume to be set is equal to the highest volume in the initial volume area, the user still wants to further increase the value of the volume to be set. At this time, it is determined that: it is determined that the volume to be set in the volume setting operation is greater than the highest volume in the initial volume area.
[0098] Case 2: The volume to be set is greater than the maximum volume in the initial volume area (the electronic device can set the volume to be set to a value greater than the maximum volume in the initial volume area, but it will not take effect).
[0099] At this time, by detecting the trigger situation, when it is determined that the trigger situation meets the continuous trigger condition, it is considered that the user's accidental touch is excluded, and it is determined that the user does have a need to increase the volume. At this time, it is also considered that: it is determined that the volume to be set in the volume setting operation is greater than the highest volume in the initial volume area.
[0100] In a feasible embodiment, the electronic device includes a display area, and the method further includes the following steps:
[0101] The initial volume area is displayed in the display area in a first display manner.
[0102] After executing step 101 to set the extended volume area, the method further includes the following steps:
[0103] The extended volume area is displayed in the display area in a second display manner.
[0104] The first display mode may be the same display mode or a different display mode.
[0105] For example, Figure 3b The border of the initial volume area 23 is set to green, and the border of the extended volume area 31 is set to red for distinction.
[0106] In a feasible implementation manner, after executing step 101 to set the extended volume area, the method further includes the following steps:
[0107] The sound quality impairment prompt information is used to indicate that a first sound quality when the electronic device plays at a volume within the extended volume range is lower than a second sound quality when the electronic device plays at a volume within the initial volume range, and the first sound quality meets the requirements of the operating scenario.
[0108] After setting the extended volume area, the user can set the volume of the electronic device to the volume in the extended volume area. Since the sound quality of the electronic device will be significantly reduced when the volume exceeds the initial volume area, it is necessary to prompt the user, such as playing a sound through sound playback, or vibrating the electronic device, or playing text, graphics or video corresponding to the sound quality impairment prompt information in the display area to prompt the user that the current sound quality is impaired.
[0109] To further simplify, the sound quality impairment reminder information may also be a simple "beep" sound reminder, such as a "beep" sound, or a simple graphic display, such as highlighting the extended volume area. Alternatively, a complex prompt (such as a prompt text, video) is given when the extended volume area is set for the first time, and a simple prompt is given each subsequent time the setting is made.
[0110] In a feasible implementation manner, after executing step 102 to control the electronic device to operate at the target volume, the method further includes the following steps:
[0111] When the electronic device exits the running scene, the maximum volume allowed to be played by the electronic device is readjusted to the maximum volume of the initial volume area; when receiving audio to be played, the audio to be played is played at the volume within the initial volume area.
[0112] It is possible to periodically detect whether the electronic device is still in the preset operating scenario. If it is detected that the electronic device has exited the operating scenario (for example, ending a call, ending an online meeting, or turning off the handset), it is considered that the electronic device still needs to play while ensuring the sound quality. At this time, the extended volume area is canceled.
[0113] The maximum volume allowed to be played by the electronic device is readjusted to the maximum volume of the initial volume area. The volume set by the user cannot exceed the initial volume area, so the audio to be played needs to be played at the volume within the initial volume area. Exemplarily, if a new volume setting operation has not been received, after receiving the audio to be played, since the audio to be played is not in the preset running scene, the audio to be played can be played at the maximum volume of the initial volume area to ensure the playback sound quality of the electronic device.
[0114] It should be noted that when the display area of the electronic device displays an extended volume area and an initial volume area, after canceling the setting of the extended volume area, the extended volume area displayed in the display area is also canceled, and only the initial volume area is displayed.
[0115] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0116] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0117] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an embodiment of a volume control device and a corresponding terminal.
[0118] Figure 5 is a structural schematic diagram of a volume control device according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the device comprises:
[0119] The setting module 501 is used to set an extended volume area in response to determining that the electronic device is in a preset operation scene; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set by the electronic device.
[0120] The control module 502 is used to control the electronic device to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
[0121] In a feasible implementation manner, the operation scenario at least includes: a human voice communication scenario.
[0122] When the control module 502 is used to control the electronic device to operate at a target volume, it is used to:
[0123] For the received audio to be played in the human voice communication scene, a preset frequency interval matching the frequency of the human voice signal is determined.
[0124] The audio signals outside the preset frequency range in the audio to be played are filtered out to obtain the processed audio to be played.
[0125] The processed audio to be played is played according to the target volume.
[0126] In a feasible implementation, when determining a preset frequency interval that matches the frequency of a human voice signal, the control module 502 is configured to:
[0127] Extracting vocal features from the audio to be played.
[0128] Determine at least one frequency corresponding to the signal of the human voice feature.
[0129] The preset frequency interval is determined based on the at least one frequency.
[0130] In a feasible embodiment, the device further comprises:
[0131] The receiving module is used to receive a volume setting operation for setting the volume of the electronic device to the volume to be set.
[0132] The setting module 501, when used to set the extended volume area in response to determining that the electronic device is in a preset operation scenario, is used to:
[0133] When it is determined that the volume to be set is greater than the highest volume in the initial volume area and the electronic device is in a preset operation scene, an extended volume area is set.
[0134] In a feasible embodiment, the device further comprises:
[0135] The first volume module is used for setting the volume to be set to the target volume before controlling the electronic device to operate at the target volume when it is determined that the volume to be set is greater than the highest volume in the initial volume area and less than or equal to the highest volume in the extended volume area.
[0136] or a second volume module, configured to set the highest volume in the extended volume area as the target volume when the volume to be set is greater than the highest volume in the extended volume area.
[0137] In one possible embodiment, the electronic device includes a volume up control.
[0138] When determining that the volume to be set is greater than the highest volume in the initial volume range, the setting module 501 is used to:
[0139] When it is determined that the volume to be set is greater than or equal to the highest volume in the initial volume area, a triggering condition of the volume increase control is detected.
[0140] When it is determined that the triggering condition satisfies the continuous triggering condition, it is determined that the volume to be set is greater than the highest volume in the initial volume area.
[0141] In a feasible implementation manner, the electronic device includes a display area, and the device further includes:
[0142] The first display module is used to display the initial volume area in the display area in a first display mode.
[0143] The second display module is used for displaying the extended volume area in the display area in a second display mode after the extended volume area is set.
[0144] In a feasible embodiment, the device further comprises:
[0145] A prompt module is used to play a prompt information of impaired sound quality after setting the extended volume area, wherein the prompt information of impaired sound quality is used to characterize that a first sound quality when the electronic device plays at a volume within the extended volume area is lower than a second sound quality when the electronic device plays at a volume within the initial volume area, and the first sound quality meets the requirements of the operating scenario.
[0146] In a feasible embodiment, the device further comprises:
[0147] The volume adjustment module is used to readjust the maximum volume allowed to be played by the electronic device to the maximum volume of the initial volume area after the electronic device is controlled to operate at the target volume and when the electronic device exits the operating scene.
[0148] The playing module is used to play the audio to be played at a volume within the initial volume area when receiving the audio to be played.
[0149] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0150] Accordingly, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to implement the steps of any of the above volume control methods by running the executable instructions.
[0151] Figure 6 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment of the present disclosure. Figure 6 As shown, for example, the electronic device 600 can be a user device, which can specifically be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, etc.
[0152] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0153] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0154] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0155] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0156] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0157] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0158] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0159] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0160] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0161] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0162] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 604 including instructions. When the instructions in the storage medium are executed by the processor 420 of the electronic device 600, the electronic device 600 is enabled to perform a volume control method, which is applied to the electronic device. The method includes:
[0163] In response to determining that the electronic device is in a preset operation scenario, an extended volume area is set; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device.
[0164] The electronic device is controlled to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
[0165] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0166] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0167] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A volume control method, characterized in that: Applied to electronic equipment, the method comprises: In response to determining that the electronic device is in a preset operation scenario, an extended volume area is set; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device; The electronic device is controlled to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
2. The method according to claim 1, characterized in that The operation scenarios at least include: human voice communication scenarios; The controlling the electronic device to operate at a target volume comprises: For the received audio to be played in the human voice communication scene, determining a preset frequency interval that matches the frequency of the human voice signal; Filtering out the audio signals outside the preset frequency range in the audio to be played, to obtain the processed audio to be played; The processed audio to be played is played according to the target volume.
3. The method according to claim 2, characterized in that The determining of a preset frequency interval matching the frequency of the human voice signal includes: Extracting vocal features from the audio to be played; Determine at least one frequency corresponding to the signal of the human voice feature; The preset frequency interval is determined based on the at least one frequency.
4. The method according to claim 1, characterized in that: The method further comprises: receiving a volume setting operation for setting the volume of the electronic device to the volume to be set; In response to determining that the electronic device is in a preset operation scenario, setting an extended volume area includes: When it is determined that the volume to be set is greater than the highest volume in the initial volume area and the electronic device is in a preset operation scene, an extended volume area is set.
5. The method according to claim 1, characterized in that Before controlling the electronic device to operate at the target volume, the method further includes: When it is determined that the volume to be set is greater than the highest volume in the initial volume area and less than or equal to the highest volume in the extended volume area, setting the volume to be set as the target volume; Alternatively, when the volume to be set is greater than the highest volume in the extended volume area, the highest volume in the extended volume area is set as the target volume.
6. The method according to claim 4 or 5, characterized in that: The electronic device includes a volume up control; The step of determining that the volume to be set is greater than the highest volume in the initial volume range includes: When it is determined that the volume to be set is greater than or equal to the highest volume in the initial volume area, detecting a triggering condition of the volume increase control; When it is determined that the triggering condition satisfies the continuous triggering condition, it is determined that the volume to be set is greater than the highest volume in the initial volume area.
7. The method according to claim 1, characterized in that The electronic device includes a display area, and the method further includes: Displaying the initial volume area in the display area in a first display mode; After setting the extended volume area, the method further includes: The extended volume area is displayed in the display area in a second display manner.
8. The method according to claim 1, characterized in that After setting the extended volume area, the method further includes: The sound quality impairment prompt information is used to indicate that a first sound quality when the electronic device plays at a volume within the extended volume range is lower than a second sound quality when the electronic device plays at a volume within the initial volume range, and the first sound quality meets the requirements of the operating scenario.
9. The method according to claim 1, characterized in that: After controlling the electronic device to operate at the target volume, the method further includes: When the electronic device exits the running scene, the maximum volume allowed to be played by the electronic device is readjusted to the maximum volume of the initial volume area; When receiving the audio to be played, the audio to be played is played at a volume within the initial volume range.
10. A volume control device, characterized in that: Applied to electronic equipment, the device comprises: A setting module, configured to set an extended volume area in response to determining that the electronic device is in a preset operation scenario; the maximum volume of the extended volume area is greater than the maximum volume of the initial volume area currently set for the electronic device; A control module is used to control the electronic device to operate at a target volume; the target volume is within the extended volume area, and the target volume is determined based on a pre-acquired volume to be set for the electronic device.
11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of any one of the methods of claims 1 to 9 by running the executable instructions.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of any method described in claims 1 to 9 are implemented.